How to program an ALTPLL_RECONFIG core?
Hi All,
I using the ALTPLL_RECONFIG core on a CycloneIV and it seems to work fine except that I can't seem to duplicate the initial state mif file settings.
When I simulate the core I get clk0=100MHz and clk1=400KHz, I then reconfigure the core using the initial state mif file setting and I get the correct clk0=100MHz but clk1=1.2MHz which is 3 times as high. The core reports:
# clk0 : C0 : high = 3 (3) , low = 3 (2) , mode = even ( odd) , phase tap = 0 (0)
# clk1 : C1 : high = 250 (625) , low = 250 (625) , mode = even ( even) , phase tap = 0 (0)
# unused : C2 : high = 256 (5) , low = 256 (5) , mode = even ( even) , phase tap = 0 (0)
# unused : C3 : high = 256 (5) , low = 256 (5) , mode = even ( even) , phase tap = 0 (0)
# unused : C4 : high = 256 (5) , low = 256 (5) , mode = even ( even) , phase tap = 0 (0)
# Charge Pump Current (bit setting) = 0 ( 0 )
# Loop Filter Capacitor (bit setting) = 0 ( 0 )
# Loop Filter Resistor (bit setting) = 27 ( 0 )
# VCO_Post_Scale = 2 ( 2 )
What is confusing to me is the previous C1 value (in brackets) should be 625, how do I program 625 when the clk1 counter is only 8 bits? The initial mif file indicates a value of 250 which I used, so I must have missed a settings?
Here is part of the mif file:
-- MIF file representing initial state of PLL Scan Chain
-- Device Family: Cyclone IV E
72 : 0; -- clk1 counter: Bypass = 0 (1 bit(s))
73 : 1; -- clk1 counter: High Count = 250 (8 bit(s))
74 : 1;
75 : 1;
76 : 1;
77 : 1;
78 : 0;
79 : 1;
80 : 0;
Thanks,
Hans.