[Script] Patch yosys script for 16kbit dual port RAM

This commit is contained in:
tangxifan 2021-04-27 23:41:47 -06:00
parent 834657f2da
commit 411af10933
3 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
bram $__MY_DPRAM_2048x8
init 0
abits 12
abits 11
dbits 8
groups 2
ports 1 1

View File

@ -1,8 +1,8 @@
module $__MY_DPRAM_2048x8 (
output [0:7] B1DATA,
input CLK1,
input [0:11] B1ADDR,
input [0:11] A1ADDR,
input [0:10] B1ADDR,
input [0:10] A1ADDR,
input [0:7] A1DATA,
input A1EN,
input B1EN );

View File

@ -5,11 +5,11 @@
module dpram_2048x8_core (
input wclk,
input wen,
input [0:11] waddr,
input [0:10] waddr,
input [0:7] data_in,
input rclk,
input ren,
input [0:11] raddr,
input [0:10] raddr,
output [0:7] data_out );
reg [0:7] ram[0:2047];
@ -40,8 +40,8 @@ module dpram_2048x8 (
input clk,
input wen,
input ren,
input [0:11] waddr,
input [0:11] raddr,
input [0:10] waddr,
input [0:10] raddr,
input [0:7] data_in,
output [0:7] data_out );