mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-21 21:33:40 +00:00
Add more Liberty tests and fix parentheses in functions
This commit is contained in:
parent
4a5e33520b
commit
c2f95d1b5a
7 changed files with 208 additions and 2 deletions
15
tests/liberty/parenfunc.lib.verilogsim.ok
Normal file
15
tests/liberty/parenfunc.lib.verilogsim.ok
Normal file
|
@ -0,0 +1,15 @@
|
|||
module latch (D, G, Q, QN);
|
||||
reg IQ, IQN;
|
||||
input D;
|
||||
input G;
|
||||
output Q;
|
||||
assign Q = IQ; // IQ
|
||||
output QN;
|
||||
assign QN = IQN; // IQN
|
||||
always @* begin
|
||||
if ((G)) begin
|
||||
IQ <= D;
|
||||
IQN <= ~(D);
|
||||
end
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue