Altera_Forum
Honored Contributor
14 years agosignal_force in gate-level simulation
Hello all,
I am trying to reproduce an actual design bug in simulation. I can identify the bug in my real system by performing some statistical tricks, e.g. exciting the design with controlled stimuli. However, for some reason, I cannot reproduce the bug in a RTL-level simulation, that would be really very easy to spot the problem. I am now willing to run a gate-level simulation to see if I can reproduce the problem. For the RTL-level simulation, I have used the signal_force function of Modelsim to set some initial values in registers that are typically programmed by the NIOS II system, which in turn is driven by PC software via a USB connection. By using the signal_force function, I can setup my simulation without the need to run the NIOS II processor. Basically, the NIOS II is only used to setup those resisters in the real system. The question now is, how can I use signal_force in a gate-level simulation? In RTL, the register names are clearly known, so it is easy to spot them. In the gate netlist of my Cyclone III design, I can observe that every bit of my registers are made up of at least to instances: "dffeas" and "cycloneiii_lcell_comb". Is there a easier trick to force those internal register values without the need to model all my system (USB interface protocol, NIOS II softwware, etc...)? Any suggestion is really appreciated. Cheers,