3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-11 21:50:54 +00:00

Check latches type one by one

This commit is contained in:
Miodrag Milanovic 2019-10-04 10:31:51 +02:00
parent 3358b2f185
commit 7785f23719
2 changed files with 25 additions and 40 deletions

View file

@ -22,37 +22,3 @@ module latchsr
else if ( en )
q <= d;
endmodule
module top (
input clk,
input clr,
input pre,
input a,
output b,b1,b2
);
latchp u_latchp (
.en (clk ),
.d (a ),
.q (b )
);
latchn u_latchn (
.en (clk ),
.d (a ),
.q (b1 )
);
latchsr u_latchsr (
.en (clk ),
.clr (clr),
.pre (pre),
.d (a ),
.q (b2 )
);
endmodule