Fixed compile error where iverilog didn't appreciate the string parameter type.
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -12,7 +12,7 @@
|
|||||||
`include "gatereg.sv"
|
`include "gatereg.sv"
|
||||||
`include "hazard_unit.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
|
input logic [0:0] clk, input logic [0:0] rst
|
||||||
);
|
);
|
||||||
logic [31:0] regs_out [32];
|
logic [31:0] regs_out [32];
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
`ifndef ROM_H
|
`ifndef ROM_H
|
||||||
`define 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,
|
input logic [m-1:0] Ad,
|
||||||
output logic [2**p-1:0] Dout
|
output logic [2**p-1:0] Dout
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user