diff --git a/modules/ram.sv b/modules/ram.sv index e8a7e4a..d1199b8 100644 --- a/modules/ram.sv +++ b/modules/ram.sv @@ -1,4 +1,4 @@ -module RAM #(addrwidth=9, datawidth=5)( +module rom #(addrwidth=9, datawidth=5)( input logic [0:0] clk, input logic [2**addrwidth-1:0] addr, input logic [0:0] we, diff --git a/modules/rom.sv b/modules/rom.sv index 9f254c3..f22d843 100644 --- a/modules/rom.sv +++ b/modules/rom.sv @@ -1,5 +1,5 @@ -module ROM #(parameter m=7,p=4) ( +module rom #(parameter m=7,p=4) ( input logic [m-1:0] Ad, output logic [p-1:0] Dout ); @@ -16,4 +16,4 @@ module ROM #(parameter m=7,p=4) ( $readmemh("./asm/bin/ELEC4720-2026s2-Ass-02-Demo.txt",mem); //$readmemb for binary `endif end -endmodule // end ROM module +endmodule // end rom module