Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ RISCOF_CONFIG := $(RISCOF_DIR)/config.ini
# ===========================
# Verilator flags
# ===========================
VERILATOR_FLAGS := -Wall --binary --trace --timing -sv -cc \
-O3 -Wno-fatal
VERILATOR_FLAGS := -Wall --binary --trace --timing -sv -cc -O3

# Testbench-only defines
TB_DEFINES := -DTESTBENCH
Expand Down
Empty file removed build/.gitkeep
Empty file.
8 changes: 4 additions & 4 deletions envs/simulation/MA.sv
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ module MA #( parameter SIZE = 1024 )
always @(posedge clk) begin
read_data <= M[address[31:2]]; // 2 LSBs used for byte addressing

if (write_enable[0]) M[address[31:2]][7:0] <= write_data[7:0];
if (write_enable[1]) M[address[31:2]][15:8] <= write_data[15:8];
if (write_enable[2]) M[address[31:2]][23:16] <= write_data[23:16];
if (write_enable[3]) M[address[31:2]][31:24] <= write_data[31:24];
if (write_enable[0]) M[address[11:2]][7:0] <= write_data[7:0];
if (write_enable[1]) M[address[11:2]][15:8] <= write_data[15:8];
if (write_enable[2]) M[address[11:2]][23:16] <= write_data[23:16];
if (write_enable[3]) M[address[11:2]][31:24] <= write_data[31:24];
end

endmodule
2 changes: 1 addition & 1 deletion src/Instruction_Decode/MemoryLoader.sv
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ module MemoryLoader
MemWriteByteAddress = 4'bxxxx;
end
endcase
endmodule
endmodule
2 changes: 1 addition & 1 deletion src/utoss_riscv.sv
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ module utoss_riscv
, .imm_ext ( imm_ext )
, .memory_address ( memory__address )
, .memory_data ( mem_load_result )
, .write_enable ( memory__write_enable )
, .write_enable ( memory__write_enable[0] )
, .rd1 ( rd1 )
, .rd2 ( rd2 )
, .result ( result )
Expand Down
Loading