This is an old revision of the document!
module CORAM1(CLK, RST_N, en, rnw, addr, din, dout); parameter THREAD = "thread_name"; parameter THREAD_ID = 0; // corresponds to cpi_instance() parameter OBJECT_ID = 0; // object id parameter WIDTH = 32; // RAM data width parameter DEPTH = 512; // RAM depth parameter INDEXWIDTH = 9; // log of RAM depth // Additional optional parameters parameter SUB_ID = -1; // valid if not -1 parameter SUBSUB_ID = -1; ... input CLK,RST_N, en, rnw; input [INDEXWIDTH-1:0] addr; input [WIDTH-1:0] din; output [WIDTH-1:0] dout; endmodule