Forum Discussion
Altera_Forum
Honored Contributor
17 years agoThanks for your advice.
The "cali_done" and "start_cal" are used as variables. "cali_done" is to indicate the "calibration part is finished, so no need to do calibration again" and "start_cal is to denote initialization is done and can do the calibration now". They are both asynchronous. I set them in the sensitivity list but the result is the same.... If you look at the deadtime.vhd, I set both deadtime_1 and deadtime_2 as two components. These two components only share the same clock but have different input and output ports. If I do simulation for one component, everything is fine. but, if I do the simualtions for two componets, there are some glitches coming out in one component's waveform (attached in my original post).....Weird.... Many thanks,again!! --- Quote Start --- If cali_done and start_cal are asynchronous inputs like a reset, add them to the sensitivity list. If they are synchronous inputs, move them inside the "elsif rising_edge (clkin)". --- Quote End ---