verilator/examples/json_py/sub.v

19 lines
452 B
Systemverilog
Raw Normal View History

2019-11-02 20:35:50 +00:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2019 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
2019-11-02 20:35:50 +00:00
// ======================================================================
module sub
#(parameter type TYPE_t = logic)
(
input TYPE_t in,
2019-11-02 20:35:50 +00:00
output TYPE_t out
);
// Some simple logic
2024-09-25 02:15:18 +00:00
always_comb out = ~in;
2019-11-02 20:35:50 +00:00
endmodule