Forum Discussion
Altera_Forum
Honored Contributor
12 years agoyou cannot clock a register from 2 sources, and you especially cannot clock a register when another clock is fired. having:
if rising_edge(clk1) then
if rising_edge(clk2) then
is impossible - think about it. You're asking to detect a rising edge that is exactly co-incident with another rising edge. I think what you mean is:
if rising_edge(stepper_clk_i) then
if clk_6Hz = '1' then --clock enable coding