Tim10
New Contributor
6 years ago10996 Verilog HDL error at <location>: parameter "<name>" has no initial or actual value
Hi,
I'm trying to pass a parameter down a chain of modules, but I get an error in top.v about the parameter having no initial nor actual value.
Any ideas? Simple typo?
Thanks,
Tim.
testbench.v
module testbench;
reg clock;
reg in;
wire out;
top
#(
.WIDTH(4)
)
top_instantiation
(
.clock(clock),
.in(in),
.out(out)
);
endmoduletop.v
module top
#(
parameter WIDTH
)
(
input clock,
input in,
output out
);
bottom
#(
.WIDTH(WIDTH)
)
bottom_instantiation
(
.clock(clock),
.in(in),
.out(out)
);
endmodulebottom.v
module bottom
#(
parameter WIDTH
)
(
input clock,
input in,
output reg out
);
endmodule