mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-24 08:24:35 +00:00
Added test cases
This commit is contained in:
parent
fb22d7cdc4
commit
271ac28b41
39 changed files with 897 additions and 0 deletions
9
tests/sim/dffsr.v
Normal file
9
tests/sim/dffsr.v
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
module dffsr( input clk, d, clr, set, output reg q );
|
||||
always @( posedge clk, posedge set, posedge clr)
|
||||
if ( clr )
|
||||
q <= 0;
|
||||
else if (set)
|
||||
q <= 1;
|
||||
else
|
||||
q <= d;
|
||||
endmodule
|
||||
Loading…
Add table
Add a link
Reference in a new issue