From 97f8b5b766d0cc82a4b63bad9dbe486889d95238 Mon Sep 17 00:00:00 2001 From: Riley King-Saunders Date: Thu, 12 Nov 2026 12:47:13 +1100 Subject: [PATCH] Fixed compile error where iverilog didn't appreciate the string parameter type. --- modules/assignment3.sv | 2 +- modules/rom.sv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/assignment3.sv b/modules/assignment3.sv index 38942fd..d7baa15 100644 --- a/modules/assignment3.sv +++ b/modules/assignment3.sv @@ -12,7 +12,7 @@ `include "gatereg.sv" `include "hazard_unit.sv" -module assignment3 #(string progsrc, width=5, romsz=9, ramsz=10)( +module assignment3 #(parameter progsrc = "", parameter width=5, parameter romsz=9, parameter ramsz=10)( input logic [0:0] clk, input logic [0:0] rst ); logic [31:0] regs_out [32]; diff --git a/modules/rom.sv b/modules/rom.sv index 4c386e4..85d00bc 100644 --- a/modules/rom.sv +++ b/modules/rom.sv @@ -1,7 +1,7 @@ `ifndef ROM_H `define ROM_H -module rom #(parameter string binary_path, parameter m=7,p=4) ( +module rom #(parameter binary_path, parameter m=7,p=4) ( input logic [m-1:0] Ad, output logic [2**p-1:0] Dout );