mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-27 19:05:52 +00:00
Add test to verify that the liberty format is properly parsed.
This commit is contained in:
parent
b7d7b377fd
commit
bf8aece4e4
5 changed files with 86 additions and 0 deletions
12
tests/liberty/dff.lib.verilogsim.ok
Normal file
12
tests/liberty/dff.lib.verilogsim.ok
Normal file
|
@ -0,0 +1,12 @@
|
|||
module dff (D, CLK, Q);
|
||||
reg "IQ", "IQN";
|
||||
input D;
|
||||
input CLK;
|
||||
output Q;
|
||||
assign Q = IQ; // "IQ"
|
||||
always @(posedge CLK) begin
|
||||
// "(D)"
|
||||
"IQ" <= (D);
|
||||
"IQN" <= ~((D));
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue