mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-02 20:47:53 +00:00
Add tests for ECP5 architecture
This commit is contained in:
parent
7e8f7f4c59
commit
11f330ed22
40 changed files with 3201 additions and 0 deletions
23
tests/ecp5/tribuf.v
Normal file
23
tests/ecp5/tribuf.v
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
module tristate (en, i, o);
|
||||
input en;
|
||||
input i;
|
||||
output o;
|
||||
|
||||
assign o = en ? i : 1'bz;
|
||||
|
||||
endmodule
|
||||
|
||||
|
||||
module top (
|
||||
input en,
|
||||
input a,
|
||||
output b
|
||||
);
|
||||
|
||||
tristate u_tri (
|
||||
.en (en ),
|
||||
.i (a ),
|
||||
.o (b )
|
||||
);
|
||||
|
||||
endmodule
|
||||
Loading…
Add table
Add a link
Reference in a new issue