mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-05 02:40:25 +00:00
Share common tests
This commit is contained in:
parent
ab98f2dccf
commit
5603595e5c
103 changed files with 179 additions and 1317 deletions
15
tests/arch/common/dffs.v
Normal file
15
tests/arch/common/dffs.v
Normal file
|
@ -0,0 +1,15 @@
|
|||
module dff
|
||||
( input d, clk, output reg q );
|
||||
always @( posedge clk )
|
||||
q <= d;
|
||||
endmodule
|
||||
|
||||
module dffe
|
||||
( input d, clk, en, output reg q );
|
||||
initial begin
|
||||
q = 0;
|
||||
end
|
||||
always @( posedge clk )
|
||||
if ( en )
|
||||
q <= d;
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue