D
dolly
Guest
//this is module
module value1(v1_a,v1_n,v1_result);
input [15:0] v1_a,v1_n;
output v1_result;
reg [15:0] v1_result;
always @ (v1_a or v1_n)
v1_result= v1_a * v1_a * v1_a * v1_a;
endmodule
//this is the stimulus
module stimulus;
reg [15:0] a,n,b;
wire [15:0] v1_out;
value1 v1(a1,n1,v1_out);
initial
begin
a=10;
b= 10;
n= 4;
# 10
a=3;
b= 4;
n= 4;
end
endmodulue
in this code i m getting a 2 warnings that
1. port size dont match in port#1(16 vs 16)
2.port size dont match in port#1(16 vs 16)
tell me the reason
module value1(v1_a,v1_n,v1_result);
input [15:0] v1_a,v1_n;
output v1_result;
reg [15:0] v1_result;
always @ (v1_a or v1_n)
v1_result= v1_a * v1_a * v1_a * v1_a;
endmodule
//this is the stimulus
module stimulus;
reg [15:0] a,n,b;
wire [15:0] v1_out;
value1 v1(a1,n1,v1_out);
initial
begin
a=10;
b= 10;
n= 4;
# 10
a=3;
b= 4;
n= 4;
end
endmodulue
in this code i m getting a 2 warnings that
1. port size dont match in port#1(16 vs 16)
2.port size dont match in port#1(16 vs 16)
tell me the reason