Altera_Forum
Honored Contributor
13 years agoHow to remove the glitch like this?
I want to design a control module to scan a image sensor chip. In the design, it needs three clock signals as: load_ck, shift_ck, CK.
For scanning each pixel, it cost 32 basic clock cycles, during 0 to 5, load_ck will be basic clock signal and in else time keep 0. For load_ck, it only be basic clock in 8th cycle. For CK, it will be basic clock from 15 to 30. So my verilog code is as: assign CK=(counterScan>14 && counterScan<31)? clk_200ns:1'b0; assign load_ck=(counterScan<6)? clk_200ns:1'b0; assign shift_ck=(counterScan==8)? clk_200ns:1'b0; But in simulation, the result is as attachment. It is very clear there are glitches appear in the waveform. This phenomena may appear in some computational logic design. How can I remove this to make clear wave signal? Thanks very much.