When to us assign and always in Verilog HDL?

Status
Not open for further replies.

sally wang

Newbie level 5
Joined
Jan 2, 2008
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,336
ques on Verilog HDL

in Verilog HDL, when should I use 'assign', and when use 'always'? Anyone understands this area can help me modify this Verilog code?

module led1(CLK,SMP,OVR,UPL,TRG);
input CLK;
output SMP,OVR,UPL,TRG;

always @ (CLK)
SMP <= 1'b0;
OVR <= 1'b0;
UPL <= 1'b0;
TRG <= 1'b0;
endmodule
 

ques on Verilog HDL

Hi,
Find your response inside this document:

#975430
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…