Question: Can anyone see why I ' m getting these errors in Quartus Altera and fix it ? CODE: module dual _ port _ SSRAM (

Can anyone see why I'm getting these errors in Quartus Altera and fix it?
CODE:
module dual_port_SSRAM (
output reg [data_width-1:0] o_data_out1, o_data_out2,
input [data_width-1:0] i_data_in1, i_data_in2,
input [$clog2(depth)-1:0] i_addr_1, i_addr_2,
input i_en1, i_wr1, i_wr2, i_en2, i_clk1
);
parameter data_width =8;
parameter depth =8;
reg [data_width-1:0] data_RAM [0:depth-1];
initial begin
$readmemh("memory.txt", data_RAM);
end
always @(posedge i_clk1) begin
if (i_wr1 && i_en1)
data_RAM[i_addr_1]= i_data_in1;
else if (i_wr2 && i_en2)
data_RAM[i_addr_2]= i_data_in2;
if (~i_wr1 && i_en1)
o_data_out1= data_RAM[i_addr_1];
if (~i_wr2 && i_en2)
o_data_out2= data_RAM[i_addr_2];
end
endmodule
 Can anyone see why I'm getting these errors in Quartus Altera

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!