3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-19 09:40:21 +00:00

Split latches into separete tests

This commit is contained in:
Miodrag Milanovic 2019-10-04 09:24:22 +02:00
parent fba6229718
commit 487b38b124
2 changed files with 27 additions and 42 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