mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-12 00:52:05 +00:00
libparse: fix quoting and negedge in filterlib -verilogsim
This commit is contained in:
parent
504b668ea6
commit
90553267b0
4 changed files with 39 additions and 31 deletions
|
|
@ -1,12 +1,12 @@
|
|||
module dff (D, CLK, Q);
|
||||
reg "IQ", "IQN";
|
||||
reg IQ, IQN;
|
||||
input D;
|
||||
input CLK;
|
||||
output Q;
|
||||
assign Q = IQ; // IQ
|
||||
always @(posedge CLK) begin
|
||||
// "(D)"
|
||||
"IQ" <= D;
|
||||
"IQN" <= ~(D);
|
||||
IQ <= D;
|
||||
IQN <= ~(D);
|
||||
end
|
||||
endmodule
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue