mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-31 07:14:55 +00:00
test dlatchsr and adlatch
This commit is contained in:
parent
271ac28b41
commit
21baf48e04
4 changed files with 94 additions and 4 deletions
10
tests/sim/sim_dlatchsr.ys
Normal file
10
tests/sim/sim_dlatchsr.ys
Normal file
|
@ -0,0 +1,10 @@
|
|||
read_verilog -icells <<EOT
|
||||
module dlatchsr(input d, set, clr, en, output reg q);
|
||||
$dlatchsr #(.EN_POLARITY(1'b1), .CLR_POLARITY(1'b1), .SET_POLARITY(1'b1), .WIDTH(1)) uut (.EN(en), .SET(set), .CLR(clr), .D(d), .Q(q));
|
||||
endmodule
|
||||
EOT
|
||||
proc
|
||||
opt_dff
|
||||
stat
|
||||
select -assert-count 1 t:$dlatchsr
|
||||
sim -r tb_dlatchsr.fst -scope tb_dlatchsr.uut -sim-cmp dlatchsr
|
Loading…
Add table
Add a link
Reference in a new issue