Module parameter 'INIT' not found for override ?

1,999 views
Skip to first unread message

LoveHDL

unread,
Jan 21, 2012, 1:54:39 PM1/21/12
to ModelSim PE Student Edition
`timescale 1ns / 1ps

module basic_test_1(a,b,c,d,z);
input a,b,c,d;
output z;

LUT4 #(.INIT(16'h0000))
LUT4_inst(.O(z), .I0(a), .I1(b), .I2(c), .I3(d) );
endmodule

module LUT4(O,I0,I1,I2,I3);
input I0,I1,I2,I3;
output O;
or orlut(O,I1,I2,I3,I0);
endmodule


I have written a simple code. I cannot understand that error message I
get while loading the testbench

Cheers

Greg Quintana

unread,
Jan 22, 2012, 10:39:58 AM1/22/12
to ModelSim PE Student Edition


On Jan 21, 10:54 am, LoveHDL <aditya.ash...@gmail.com> wrote:
> `timescale 1ns / 1ps
>
> module basic_test_1(a,b,c,d,z);
> input a,b,c,d;
> output z;
>

Does this line need a semicolon at the end?

LoveHDL

unread,
Jan 23, 2012, 10:54:51 AM1/23/12
to ModelSim PE Student Edition
Nope figured it out. The parameter needs to be defined in basic_test_1
Reply all
Reply to author
Forward
0 new messages