1
0
mirror of https://github.com/aolofsson/oh.git synced 2025-01-30 02:32:53 +08:00

Removing asic config dependancy

- No plans for dual ported memory use for now, if this changes and there needs to be differentiation, then this should probably be a parameter rather than define. (since you might want to choose between regs based and macro based depending on size of memory).
This commit is contained in:
Andreas Olofsson 2016-04-06 11:51:03 -04:00
parent 83c3caf1c4
commit 1b512cdbde

View File

@ -30,12 +30,6 @@ module oh_memory_dp(/*AUTOARG*/
input [AW-1:0] rd_addr;//read address
output[DW-1:0] rd_dout;//read output data
`ifdef CFG_ASIC
initial
$display("Need to instantiate process specific macro here");
`else
reg [DW-1:0] ram [MD-1:0];
reg [DW-1:0] rd_dout;
integer i;
@ -50,10 +44,7 @@ module oh_memory_dp(/*AUTOARG*/
for (i=0;i<DW;i=i+1)
if (wr_en & wr_wem[i])
ram[wr_addr[AW-1:0]][i] <= wr_din[i];
`endif // !`ifdef CFG_ASIC
endmodule // memory_dp