From c7a70e1962a7b6d8dfd524d39f42a7f31261450f Mon Sep 17 00:00:00 2001 From: vin Date: Mon, 10 Mar 2025 16:20:23 -0400 Subject: use relative filepath for ROM and RAM --- riscvsingle.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/riscvsingle.sv b/riscvsingle.sv index f536718..91fbe19 100644 --- a/riscvsingle.sv +++ b/riscvsingle.sv @@ -135,7 +135,7 @@ module imem(input logic [31:0] a, // Simulator : ok // Hardware : For FPGA ok, non-FPGA we need a 3rd party solution to program the FLASH memory (ROM) initial - $readmemh("C:\\Users\\onur\\Desktop\\CE_Lab2\\CEL_PROJECT\\riscvtest_rom_image.txt", ROM); + $readmemh("riscvtest_rom_image.txt", ROM); assign rd = ROM[a[31:2]]; // word aligned endmodule @@ -169,7 +169,7 @@ module dmem(input logic clk, we, // Simulator : ok // Hardware : For FPGA ok, non-FPGA we need a 3rd party solution to program the DATA memory (RAM) initial - $readmemh("C:\\Users\\onur\\Desktop\\CE_Lab2\\CEL_PROJECT\\riscvtest_ram_image.txt", RAM); + $readmemh("riscvtest_ram_image.txt", RAM); endmodule -- cgit v1.2.3