Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

multiple task call in verilog

Status
Not open for further replies.

warlock_ajay

Junior Member level 1
Joined
Mar 29, 2006
Messages
18
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,431
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
 

Code:
always @( negedge clk) 
begin 
regist (out2,inB); 
regist (out1,inA); 

end

I dont know VHDL.But I think you cannot port map inside always statement.
Remove the always statement.Instead give a always statement in the reg module itself.

--vipin
https://vhdlguru.blogspot.com/
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top