mirror of
https://github.com/verilator/verilator.git
synced 2025-01-10 00:27:35 +00:00
32 lines
413 B
Coq
32 lines
413 B
Coq
|
// DESCRIPTION: Verilator: Verilog Test module
|
||
|
//
|
||
|
// This file ONLY is placed into the Public Domain, for any use,
|
||
|
// without warranty, 2010 by Wilson Snyder.
|
||
|
|
||
|
module t
|
||
|
(
|
||
|
output wire o,
|
||
|
input wire i,
|
||
|
input wire i2
|
||
|
);
|
||
|
|
||
|
sub
|
||
|
#(.P(2), .P(3))
|
||
|
sub (.o(o),
|
||
|
.i(i),
|
||
|
.i(i2),
|
||
|
);
|
||
|
|
||
|
endmodule
|
||
|
|
||
|
module sub
|
||
|
#(parameter P=1)
|
||
|
(
|
||
|
output wire o,
|
||
|
input wire i
|
||
|
);
|
||
|
|
||
|
assign o = ~i;
|
||
|
|
||
|
endmodule
|