mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-01 15:50:42 +00:00
Add smoke tests to tests/xilinx
This commit is contained in:
parent
ca7a58bcc8
commit
757c476f62
30 changed files with 656 additions and 10 deletions
|
@ -1,19 +1,19 @@
|
|||
module latchp
|
||||
( input d, en, output reg q );
|
||||
( input d, clk, en, output reg q );
|
||||
always @*
|
||||
if ( en )
|
||||
q <= d;
|
||||
endmodule
|
||||
|
||||
module latchn
|
||||
( input d, en, output reg q );
|
||||
( input d, clk, en, output reg q );
|
||||
always @*
|
||||
if ( !en )
|
||||
q <= d;
|
||||
endmodule
|
||||
|
||||
module latchsr
|
||||
( input d, en, clr, pre, output reg q );
|
||||
( input d, clk, en, clr, pre, output reg q );
|
||||
always @*
|
||||
if ( clr )
|
||||
q <= 1'b0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue