3
0
Fork 0
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:
SergeyDegtyar 2019-09-10 08:08:03 +03:00 committed by Miodrag Milanovic
parent ca7a58bcc8
commit 757c476f62
30 changed files with 656 additions and 10 deletions

View file

@ -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;