From dcd9f0af23f9b580b044890452ecf1aef59bbb85 Mon Sep 17 00:00:00 2001 From: TimRudy <3942818+TimRudy@users.noreply.github.com> Date: Wed, 24 Feb 2021 15:48:15 -0500 Subject: Extend "delay" expressions to handle pair and triplet, i.e. rise, fall and turn-off (#2566) --- tests/verilog/delay_risefall.ys | 225 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 tests/verilog/delay_risefall.ys (limited to 'tests/verilog/delay_risefall.ys') diff --git a/tests/verilog/delay_risefall.ys b/tests/verilog/delay_risefall.ys new file mode 100644 index 000000000..ffbe1909d --- /dev/null +++ b/tests/verilog/delay_risefall.ys @@ -0,0 +1,225 @@ +logger -expect-no-warnings +read_verilog <> b) >>> c; +endmodule +EOT + +design -reset +logger -expect-no-warnings +read_verilog < inA[1]) out <= 1'b1; + else if (inA[0] < inA[1] - hyst) out <= 1'b0; + end +endmodule +EOT + +design -reset +logger -expect-no-warnings +read_verilog < inA[1]) out <= 1'b1; + else if (inA[0] < inA[1] - hyst) out <= 1'b0; + end +endmodule +EOT + +design -reset +logger -expect-no-warnings +read_verilog <