mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 12:11:24 +00:00
test dlatchsr and adlatch
This commit is contained in:
parent
271ac28b41
commit
21baf48e04
4 changed files with 94 additions and 4 deletions
11
tests/sim/dlatchsr.v
Normal file
11
tests/sim/dlatchsr.v
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue