3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-26 15:39:35 +00:00

filterlib: prefer using precedence over unsynthesizable verilog

This commit is contained in:
Emil J. Tywoniak 2025-11-21 00:43:54 +01:00
parent d5c1cd8fc0
commit b3112bf025
5 changed files with 235 additions and 76 deletions

View file

@ -5,8 +5,11 @@ module dff (D, CLK, Q);
output Q;
assign Q = IQ; // IQ
always @(posedge CLK) begin
// "(D)"
// D
IQ <= D;
end
always @(posedge CLK) begin
// ~(D)
IQN <= ~(D);
end
endmodule