Altera_Forum
Honored Contributor
15 years agoVerilog simulation
I wonder if what I've in mind is possible.
Imagine I've a 64bit counter that rolls to 0 when the count is 64'hFFFFFFFFFFFFFF0. The counter is described in Verilog code. The counter has no signal to load a particular counter value. I want to simulate counter behaviour and test if it resets when expected. I don't want to simulate 2^64 clock cycles foroabvious reasons. Is there a way to write a tesbench that, at a certain simulation point, sets a particular value in the register of the counter? My question is then: is it possible, in simulation, to set a particular state in the circuit under test? As example, is it possible to put a finite state machine in a not defined state, to check it's behaviour? Thx for your help. P.S. Is this the correct forum for Verilog questions? Do you know a more adequate one?