3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-07-30 16:03:17 +00:00

dfflibmap: cover enable inference with test

This commit is contained in:
Emil J. Tywoniak 2024-12-09 14:18:08 +01:00
parent 52336369fa
commit 681b678417
3 changed files with 51 additions and 13 deletions

View file

@ -20,3 +20,12 @@ always @(posedge CLK, posedge CLEAR, posedge PRESET)
assign QN = ~Q;
endmodule
module dffe(input CLK, EN, D, output reg Q, output QN);
always @(negedge CLK)
if (EN) Q <= D;
assign QN = ~Q;
endmodule