0

I have used two different modules in generate loop statement both are inter dependent. so, I want to know to how to execute them sequentially.

1 Answer 1

2

Verilog describes behavior of hardware. The hardware is a set of connected devices which all function in parallel. However, connections guarantee that eventually (takes some time) outputs of devices will propagate to the inputs of driven devices which outputs will be updated accordingly, and which will drive their fanout devices.

Verilog simulates this behavior by using event-driven simulation. If an output of a device changes, it will evaluate (or re-evaluate) the devices driven by this output.

Synthesis generates those connected hardware devices from verilog description.

So, no matter in which order you instantiate your modules, the order of evaluation is only defined by their connections. It does not matter if modules are in generate blocks or not. Just make sure that they are connected correctly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.