`define checkh(gotv, expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); `stop; end while(0);
modulet(/*AUTOARG*/
// Inputs
clk
);
inputclk;
reg[7:0]p1;
reg[7:0]p2;
reg[7:0]p3;
initialbegin
p1=8'h01;
p2=8'h02;
p3=8'h03;
end
parameterintPARAM1=8'h11;
parameterintPARAM2=8'h12;
parameterintPARAM3=8'h13;
targetmodi_targetmod(/*AUTOINST*/
// Inputs
.clk(clk));
//Binding i_targetmod to mycheck --instantiates i_mycheck inside i_targetmod
//PARAM1 not over-riden (as mycheck) (=> 0x31)
//PARAM2 explicitly bound to targetmod value (=> 0x22)
//PARAM3 explicitly bound to top value (=> 0x13)
//p1 implictly bound (.*), takes value from targetmod (=> 0x04)