Forum Discussion
8 Replies
- Altera_Forum
Honored Contributor
You could just post your homework assignment for us. :)
You could create a task that contains your loop. Then just schedule the task to run at some predefined interval. Jake - Altera_Forum
Honored Contributor
Hi Jakob,
I wish this was only an assignment :) I do thank you though and if you do have any other suggestions please do let me know. thanks - Altera_Forum
Honored Contributor
I presume you are aware of the $stop and $finish directives in verilog?
Descriptions from the sutherland HDL reference: $finish; Finishes a simulation and exits the simulation process. $stop; Halts a simulation and enters an interactive debug mode. Jake - Altera_Forum
Honored Contributor
thanks for your help..
- Altera_Forum
Honored Contributor
This should make modelsim get stuck in an infinite loop in VHDL:
signal a : std_logic := '1'; signal b : std_logic := '0'; ... b <= a and not b; - Altera_Forum
Honored Contributor
thanks tricky... did end up doing something like that. general question can anyone give me an example how do i make 2 always loops to be continuously switching between each other
- Altera_Forum
Honored Contributor
you can try
... process begin ...... loop wait until clk='1'; ...... end loop; end process; - Altera_Forum
Honored Contributor
Did I conceive a circuit under quartusII and do I want validated it by a file of data to elaborate by a program in C language, and to recover the exits as a file text, how to make?