mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-23 19:47:55 +00:00
Moved all tests in arch sub directory
This commit is contained in:
parent
3c41599ee1
commit
c2ec7ca703
151 changed files with 5 additions and 5 deletions
18
tests/arch/ice40/rom.v
Normal file
18
tests/arch/ice40/rom.v
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
Example from: https://www.latticesemi.com/-/media/LatticeSemi/Documents/UserManuals/EI/iCEcube201701UserGuide.ashx?document_id=52071 [p. 74].
|
||||
*/
|
||||
module top(data, addr);
|
||||
output [3:0] data;
|
||||
input [4:0] addr;
|
||||
always @(addr) begin
|
||||
case (addr)
|
||||
0 : data = 'h4;
|
||||
1 : data = 'h9;
|
||||
2 : data = 'h1;
|
||||
15 : data = 'h8;
|
||||
16 : data = 'h1;
|
||||
17 : data = 'h0;
|
||||
default : data = 'h0;
|
||||
endcase
|
||||
end
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue