Fix a port width problem, and change file permissions.

This commit is contained in:
2018-06-05 22:56:46 -07:00
parent d183a7e1de
commit bfe4b65788
5 changed files with 4 additions and 2 deletions

4
memory.sv Executable file → Normal file
View File

@@ -8,7 +8,9 @@ module memory #(width=32)
if(reset) begin
data <= '{default: 0};
end else begin
if(wen) data[waddr] <= in;
if(wen) begin
data[waddr] <= in;
end
end
assign out = data[raddr];