Altera_Forum
Honored Contributor
16 years agoHow to bypass setup and hold time checks in Altera-Modelsim
Hi there,
I am designing a special measuring circuit in which setup and hold times of FF are sometimes violated. When they happen, the related signals become undefined 'X', thus compromising the rest of the gate simulation in Modelsim (Cyclone II models, from Quartus II). How is it possible to disable setup and hold time checks during simulation? I reviewed the code in the Cyclone II (Vital) models, and there is indeed a flag CheckInfo.Violation. Depending on this flag, the check is or isn't performed. How to set that flag to a desired value? Finally, in Quartus II, (Settings -> EDA Tool Settings -> Simulation -> More EDA Netlist Writer Settings), there is an option called "Disable detection of setup and hold time violation in the input resisters of bi-directional pins". I turned in On, but it does not have any effect in the simulation. I think this option is clearly not applicable to registers in logic elements. Thanks in advance!