warlock_ajay
Junior Member level 1
the warning says the input inA is never used
I am expecting two serial registers but I get only one.
Code:
module register(out1,out2, inA,inB,clk,reset);
output out1,out2;
input inA,inB;
input reset, clk;
reg out1,out2;
reg in1, in2, in3;
always @( negedge clk)
begin
regist (out2,inB);
regist (out1,inA);
end
/*always @( negedge clk)
begin
regist (out2,inB);
end*/
task regist;
output out;
input in;
begin
in1 <= in;
in2 <= in1;
in3 <= in2;
out <= in3;
end
endtask
endmodule
I am expecting two serial registers but I get only one.
Code:
module register(out1,out2, inA,inB,clk,reset);
output out1,out2;
input inA,inB;
input reset, clk;
reg out1,out2;
reg in1, in2, in3;
always @( negedge clk)
begin
regist (out2,inB);
regist (out1,inA);
end
/*always @( negedge clk)
begin
regist (out2,inB);
end*/
task regist;
output out;
input in;
begin
in1 <= in;
in2 <= in1;
in3 <= in2;
out <= in3;
end
endtask
endmodule