Fixed bug where ram datawidth was not 2^N.
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -5,8 +5,8 @@ module ram #(addrwidth=9, datawidth=5)(
|
|||||||
input logic [0:0] clk, input logic [0:0] rst,
|
input logic [0:0] clk, input logic [0:0] rst,
|
||||||
input logic [addrwidth-1:0] addr,
|
input logic [addrwidth-1:0] addr,
|
||||||
input logic [0:0] we,
|
input logic [0:0] we,
|
||||||
input logic [datawidth-1:0] data_in,
|
input logic [2**datawidth-1:0] data_in,
|
||||||
output logic [datawidth-1:0] data_out
|
output logic [2**datawidth-1:0] data_out
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO: Make this byte-sized, NOT word-sized!
|
// TODO: Make this byte-sized, NOT word-sized!
|
||||||
|
|||||||
Reference in new issue
Block a user