mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-30 23:10:09 +00:00
ice40: Use memory_libmap
pass.
This commit is contained in:
parent
3b2f95953c
commit
d7dc2313b9
9 changed files with 285 additions and 506 deletions
24
techlibs/ice40/spram_map.v
Normal file
24
techlibs/ice40/spram_map.v
Normal file
|
@ -0,0 +1,24 @@
|
|||
module $__ICE40_SPRAM_ (...);
|
||||
|
||||
input PORT_A_CLK;
|
||||
input PORT_A_CLK_EN;
|
||||
input PORT_A_WR_EN;
|
||||
input [3:0] PORT_A_WR_BE;
|
||||
input [13:0] PORT_A_ADDR;
|
||||
input [15:0] PORT_A_WR_DATA;
|
||||
output [15:0] PORT_A_RD_DATA;
|
||||
|
||||
SB_SPRAM256KA _TECHMAP_REPLACE_ (
|
||||
.ADDRESS(PORT_A_ADDR),
|
||||
.DATAIN(PORT_A_WR_DATA),
|
||||
.MASKWREN(PORT_A_WR_BE),
|
||||
.WREN(PORT_A_WR_EN),
|
||||
.CHIPSELECT(PORT_A_CLK_EN),
|
||||
.CLOCK(PORT_A_CLK),
|
||||
.STANDBY(1'b0),
|
||||
.SLEEP(1'b0),
|
||||
.POWEROFF(1'b1),
|
||||
.DATAOUT(PORT_A_RD_DATA),
|
||||
);
|
||||
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue