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:
parent
52336369fa
commit
681b678417
3 changed files with 51 additions and 13 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue