Para el siguiente código, obtengo varios errores:
1) Target <mem> of concurrent assignment or output port connection should be a net type.
2) in_d0_ is not a constant
¿Cómo se puede resolver este problema?
module module_cell44( in_d0,in_d1,in_d2,in_d3,out_61,out_68,clk );
parameter DATA_WIDTH = 16;
parameter ADDR_WIDTH = 8;
parameter ADDR_DEPTH = 1 << ADDR_WIDTH;
// Interfaces
input clk;
input [DATA_WIDTH - 1:0] in_d0,in_d1,in_d2,in_d3;
output [DATA_WIDTH - 1:0] out_61,out_68;
reg [DATA_WIDTH - 1:0] out_61,in_d0_,in_d1_;
//Cell's memory array
reg [DATA_WIDTH - 1:0] mem[0:ADDR_DEPTH - 1];
// Procedural Assignments
always @ ( posedge clk )
begin
in_d0_ <= in_d0;
in_d1_ <= in_d1;
mem[in_d2]<=in_d3;
end
// Continues Assinmnents
assign mem[in_d0_] = in_d1_;
endmodule