mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-30 06:50:09 +00:00
Add tests for Xilinx UG901 examples
This commit is contained in:
parent
0d037bf9d8
commit
2ae7dec530
89 changed files with 2962 additions and 0 deletions
17
tests/xilinx_ug901/latches.v
Normal file
17
tests/xilinx_ug901/latches.v
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Latch with Positive Gate and Asynchronous Reset
|
||||
// File: latches.v
|
||||
module latches (
|
||||
input G,
|
||||
input D,
|
||||
input CLR,
|
||||
output reg Q
|
||||
);
|
||||
always @ *
|
||||
begin
|
||||
if(CLR)
|
||||
Q = 0;
|
||||
else if(G)
|
||||
Q = D;
|
||||
end
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue