mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2024-12-19 21:04:25 -05:00
Zero extend the address to match SB_RAM4K ports
This commit is contained in:
parent
517fafff57
commit
159b20fa4e
@ -49,11 +49,11 @@ module fw_ram(
|
|||||||
//----------------------------------------------------------------
|
//----------------------------------------------------------------
|
||||||
SB_RAM40_4K fw_ram0(
|
SB_RAM40_4K fw_ram0(
|
||||||
.RDATA(mem_read_data[15 : 0]),
|
.RDATA(mem_read_data[15 : 0]),
|
||||||
.RADDR(address),
|
.RADDR({3'h0, address}),
|
||||||
.RCLK(clk),
|
.RCLK(clk),
|
||||||
.RCLKE(1'h1),
|
.RCLKE(1'h1),
|
||||||
.RE(fw_app_cs),
|
.RE(fw_app_cs),
|
||||||
.WADDR(address),
|
.WADDR({3'h0, address}),
|
||||||
.WCLK(clk),
|
.WCLK(clk),
|
||||||
.WCLKE(1'h1),
|
.WCLKE(1'h1),
|
||||||
.WDATA(write_data[15 : 0]),
|
.WDATA(write_data[15 : 0]),
|
||||||
@ -64,11 +64,11 @@ module fw_ram(
|
|||||||
|
|
||||||
SB_RAM40_4K fw_ram1(
|
SB_RAM40_4K fw_ram1(
|
||||||
.RDATA(mem_read_data[31 : 16]),
|
.RDATA(mem_read_data[31 : 16]),
|
||||||
.RADDR(address),
|
.RADDR({3'h0, address}),
|
||||||
.RCLK(clk),
|
.RCLK(clk),
|
||||||
.RCLKE(1'h1),
|
.RCLKE(1'h1),
|
||||||
.RE(fw_app_cs),
|
.RE(fw_app_cs),
|
||||||
.WADDR(address),
|
.WADDR({3'h0, address}),
|
||||||
.WCLK(clk),
|
.WCLK(clk),
|
||||||
.WCLKE(1'h1),
|
.WCLKE(1'h1),
|
||||||
.WDATA(write_data[31 : 16]),
|
.WDATA(write_data[31 : 16]),
|
||||||
|
Loading…
Reference in New Issue
Block a user