surajdash
Junior Member level 2
- Joined
- Jun 21, 2011
- Messages
- 22
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,440
toggle = @ (negedge idclk)~ toggle;
The always block as a whole will be only "executed" at the rising edge of idclk. So even if the construct would be accepted for synthesis, the code is completely useless.but what if i want that statement to execute only at the negative edge of the clk??
how do i achieve that??
toggle @(posedge clk) = ~toggle
Looking at the latest code, the problem turns out even worse. While the @(posedge xx) event control can be implemented in synthesis by reordering the code, you also have #xx timing control expressions that aren't synthesizable at all. You need to study the basics of Verilog for hardware design and rewrite the code from the scratch - if you intend to synthesize it.
Where did you get this idea? In fact, # timing control statements are ignored by the synthesis tool, but the code won't work as intended.the # (idclk_p) is synthesizable they r just integer values calculate as the time period of idclk.
You need to study the basics of Verilog for hardware design and rewrite the code from the scratch - if you intend to synthesize it.
always @(posedge idclk)
begin
....
end
Don't use SMS typing, write complete words. Consider this a warning [alexan_e]
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?