mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-07 02:58:49 +02:00
support for gates with delays
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
module top;
|
||||
reg input_a;
|
||||
reg input_b;
|
||||
|
||||
wire output_and;
|
||||
wire output_and_delay;
|
||||
wire output_not;
|
||||
wire output_buf_delay;
|
||||
|
||||
and (output_and, input_a, input_b);
|
||||
and #1 (output_and_delay, input_a, input_b);
|
||||
not (output_not, input_a);
|
||||
buf #2 foo_name (output_buf_delay, input_a);
|
||||
|
||||
initial repeat(2) begin
|
||||
$monitor("%3d ", $time,
|
||||
input_a, input_b,
|
||||
output_and, output_and_delay,
|
||||
output_not, output_buf_delay);
|
||||
|
||||
#1;
|
||||
#1; input_a = 1;
|
||||
#1; input_b = 0;
|
||||
#1; input_b = 1;
|
||||
#1;
|
||||
|
||||
#1; input_a = 0;
|
||||
#1; input_b = 0;
|
||||
#1; input_a = 0;
|
||||
#1; input_b = 1;
|
||||
#1; input_a = 1;
|
||||
#1; input_b = 0;
|
||||
#1; input_a = 1;
|
||||
#1; input_b = 1;
|
||||
#1;
|
||||
#1;
|
||||
#1;
|
||||
end
|
||||
endmodule
|
||||
@@ -0,0 +1,2 @@
|
||||
// This test is for parser coverge only.
|
||||
`include "gate.sv"
|
||||
Reference in New Issue
Block a user