From: Miodrag Milanovic Date: Wed, 16 Feb 2022 12:58:51 +0000 (+0100) Subject: test dlatchsr and adlatch X-Git-Tag: yosys-0.15~12^2~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=21baf48e04bfb75527a6c04f1e98b34e62b8eec4;p=yosys.git test dlatchsr and adlatch --- diff --git a/tests/sim/dlatchsr.v b/tests/sim/dlatchsr.v new file mode 100644 index 000000000..1d13ac2ad --- /dev/null +++ b/tests/sim/dlatchsr.v @@ -0,0 +1,11 @@ +module dlatchsr( input d, set, clr, en, output reg q ); + always @* begin + if ( clr ) + q = 0; + else if (set) + q = 1; + else + if (en) + q = d; + end +endmodule diff --git a/tests/sim/sim_adlatch.ys b/tests/sim/sim_adlatch.ys index 787b00c39..eece7dc0d 100644 --- a/tests/sim/sim_adlatch.ys +++ b/tests/sim/sim_adlatch.ys @@ -1,6 +1,10 @@ -read_verilog adlatch.v -synth -#TODO: adlatch is not emited +read_verilog -icells <