@@ -52,25 +52,34 @@ module sram_cache #(
5252 rdata_o = rdata_user[DATA_AND_USER_WIDTH - 1 : DATA_WIDTH ];
5353 ruser_o = rdata_user[USER_WIDTH - 1 : 0 ];
5454 end
55- tc_sram_wrapper_cache_techno # (
56- .NumWords (NUM_WORDS ), // Number of Words in data array
57- .DataWidth (DATA_AND_USER_WIDTH ),// Data signal width
58- .ByteWidth (32'd8 ), // Width of a data byte
59- .NumPorts (32'd1 ), // Number of read and write ports
60- .Latency (32'd1 ), // Latency when the read data is available
61- .SimInit (SIM_INIT ), // Simulation initialization
62- .BYTE_ACCESS (BYTE_ACCESS ), // ACCESS byte or full word
63- .PrintSimCfg (1'b0 ) // Print configuration
64- ) i_tc_sram_wrapper (
65- .clk_i ( clk_i ),
66- .rst_ni ( rst_ni ),
67- .req_i ( req_i ),
68- .we_i ( we_i ),
69- .be_i ( be ),
70- .wdata_i ( wdata_user ),
71- .addr_i ( addr_i ),
72- .rdata_o ( rdata_user )
73- );
55+ fakeram7_256x32 i_tc_sram_wrapper (
56+ .clk ( clk_i ),
57+ .ce_in ( req_i ),
58+ .we_in ( we_i ),
59+ .wd_in ( wdata_user ),
60+ .addr_in ( addr_i ),
61+ .rd_out ( rdata_user )
62+ );
63+
64+ // tc_sram_wrapper_cache_techno #(
65+ // .NumWords(NUM_WORDS), // Number of Words in data array
66+ // .DataWidth(DATA_AND_USER_WIDTH),// Data signal width
67+ // .ByteWidth(32'd8), // Width of a data byte
68+ // .NumPorts(32'd1), // Number of read and write ports
69+ // .Latency(32'd1), // Latency when the read data is available
70+ // .SimInit(SIM_INIT), // Simulation initialization
71+ // .BYTE_ACCESS(BYTE_ACCESS), // ACCESS byte or full word
72+ // .PrintSimCfg(1'b0) // Print configuration
73+ // ) i_tc_sram_wrapper (
74+ // .clk_i ( clk_i ),
75+ // .rst_ni ( rst_ni ),
76+ // .req_i ( req_i ),
77+ // .we_i ( we_i ),
78+ // .be_i ( be ),
79+ // .wdata_i ( wdata_user ),
80+ // .addr_i ( addr_i ),
81+ // .rdata_o ( rdata_user )
82+ // );
7483 end else begin
7584 logic [DATA_WIDTH - 1 : 0 ] wdata_user;
7685 logic [DATA_WIDTH - 1 : 0 ] rdata_user;
@@ -82,25 +91,34 @@ module sram_cache #(
8291 rdata_o = rdata_user;
8392 ruser_o = '0 ;
8493 end
85- tc_sram_wrapper_cache_techno # (
86- .NumWords (NUM_WORDS ), // Number of Words in data array
87- .DataWidth (DATA_AND_USER_WIDTH ),// Data signal width
88- .ByteWidth (32'd8 ), // Width of a data byte
89- .NumPorts (32'd1 ), // Number of read and write ports
90- .Latency (32'd1 ), // Latency when the read data is available
91- .SimInit (SIM_INIT ), // Simulation initialization
92- .BYTE_ACCESS (BYTE_ACCESS ), // ACCESS byte or full word
93- .PrintSimCfg (1'b0 ) // Print configuration
94- ) i_tc_sram_wrapper (
95- .clk_i ( clk_i ),
96- .rst_ni ( rst_ni ),
97- .req_i ( req_i ),
98- .we_i ( we_i ),
99- .be_i ( be ),
100- .wdata_i ( wdata_user ),
101- .addr_i ( addr_i ),
102- .rdata_o ( rdata_user )
103- );
94+ fakeram7_256x32 i_tc_sram_wrapper (
95+ .clk ( clk_i ),
96+ .ce_in ( req_i ),
97+ .we_in ( we_i ),
98+ .wd_in ( wdata_user ),
99+ .addr_in ( addr_i ),
100+ .rd_out ( rdata_user )
101+ );
102+
103+ // tc_sram_wrapper_cache_techno #(
104+ // .NumWords(NUM_WORDS), // Number of Words in data array
105+ // .DataWidth(DATA_AND_USER_WIDTH),// Data signal width
106+ // .ByteWidth(32'd8), // Width of a data byte
107+ // .NumPorts(32'd1), // Number of read and write ports
108+ // .Latency(32'd1), // Latency when the read data is available
109+ // .SimInit(SIM_INIT), // Simulation initialization
110+ // .BYTE_ACCESS(BYTE_ACCESS), // ACCESS byte or full word
111+ // .PrintSimCfg(1'b0) // Print configuration
112+ // ) i_tc_sram_wrapper (
113+ // .clk_i ( clk_i ),
114+ // .rst_ni ( rst_ni ),
115+ // .req_i ( req_i ),
116+ // .we_i ( we_i ),
117+ // .be_i ( be ),
118+ // .wdata_i ( wdata_user ),
119+ // .addr_i ( addr_i ),
120+ // .rdata_o ( rdata_user )
121+ // );
104122 end
105123 end else begin
106124 sram # (
0 commit comments