File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ module tt_um_drum_goekce (
1212 parameter unsigned k = 6 ;
1313 parameter unsigned n = 8 ;
1414 parameter unsigned m = 8 ;
15- parameter RAM_BYTES = 18 ;
15+ parameter RAM_BYTES = 10 ;
1616 localparam addr_bits = $clog2(RAM_BYTES);
1717
1818 wire [addr_bits- 1 :0 ] addr = ui_in[addr_bits- 1 :0 ];
@@ -21,7 +21,7 @@ module tt_um_drum_goekce (
2121 assign uio_out = 8'b0 ;
2222
2323 reg [7 :0 ] ram [RAM_BYTES - 1 :0 ];
24- reg [3 :0 ] cntr;
24+ reg [1 :0 ] cntr;
2525
2626 always @(posedge clk) begin
2727 if (! rst_n) begin
@@ -31,9 +31,9 @@ module tt_um_drum_goekce (
3131 ram[i] <= 8'b0 ;
3232 end
3333 end else begin
34- if (cntr != 7 ) cntr <= cntr + 1 ;
34+ if (cntr != 3 ) cntr <= cntr + 1 ;
3535 // if (addr[4] == 1) begin
36- if (wr_en && addr[4 ] == 1 ) begin
36+ if (wr_en && addr[3 ] == 1 ) begin
3737 ram[addr] <= uio_in;
3838 end
3939 uo_out <= ram[addr];
You can’t perform that action at this time.
0 commit comments