Selvakumaran_007
Newbie level 3
- Joined
- Mar 12, 2013
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,321
1)
initial
clock=1'b0;
always
clock=~clock;
2)
initial
clock=1'b0;
always@(clock)
clock=~clock;
Can someone explain me about the difference between the two programs? The first program doesn't produce any output because both initial and always are parallel and clock is initialized to '0' in initial and inverted in always block. So the compiler tool cannot decide on a value at the instant.
In the second case I noticed in model sim that it produces a signal '1'. I'm confused about that. What difference does the second question make? Aren't we making inversion of clock at the same instant as in initial? Can someone please explain how this works?
initial
clock=1'b0;
always
clock=~clock;
2)
initial
clock=1'b0;
always@(clock)
clock=~clock;
Can someone explain me about the difference between the two programs? The first program doesn't produce any output because both initial and always are parallel and clock is initialized to '0' in initial and inverted in always block. So the compiler tool cannot decide on a value at the instant.
In the second case I noticed in model sim that it produces a signal '1'. I'm confused about that. What difference does the second question make? Aren't we making inversion of clock at the same instant as in initial? Can someone please explain how this works?