Hi All,
I am trying to generate a 4 MHz clock using the Microzed Board. I am using the PL Fabric IO PLL set to 4 MHz, but I get an output of approximately 100 MHz.
I used LEDs to checkt the output frequency.
VHDL Code ----------------------------------------
testClkProcess: process
variable count: integer range 0 to 99_999_999 := 0;
begin
wait until rising_edge(clk4);
if count = 99_999_999 then
count := 0;
sLeds(5) <= not sLeds(5);
else
count := count + 1;
end if;
end process;
--------------------------------------------------
According to the above code, the LEDs should blink every 25 seconds by using clk4 but they blink approximately at 1 second.
I stumbled on this issue while working on a more complicated project and finally debugged the issue to not being able to generate a 4MHz clock, instead 100 MHz clock instead being used for the same!
I have tested the same code in ZedBoard and it works fine. But MicrozedBoard seems to have this issue.
Thanks,
Wasim