[SOLVED] Verilog Delay

Status
Not open for further replies.

stark43

Member level 1
Joined
Oct 24, 2021
Messages
35
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
387
Hello, I want a status to be maintained for a certain period of time. For example, assigning the output to a certain value for 100ns. I thought of a method for this, but I don't know if it makes sense. There will be a counter module and it will count continuously until the reset signal arrives. If we send a reset signal to this counter module from the main structure, it will reset once and continue to count again. I do the reset event in the combinatorial always block, but the reset signal is connected to the main clock. What are your suggestions, is there a more logical way or is this way valid?

 

Simple analysis, count_reg has multiple drivers (in two separate sequential blocks), design not synthesizable.

Although it's frequently suggested in text books, I don't see an advantage in splitting a FSM in a combinational and a clocked always block. You can achieve the same function with less code lines in a single clocked always block.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…