|
Parameterized phase-locked loop (PLL) reconfiguration megafunction. The altpll_reconfig
megafunction enables real-time control of the PLL. The altmemmult megafunction is available for Cyclone, Stratix, and Stratix GX devices only.
Altera® recommends instantiating this function as described in Using the MegaWizard® Plug-In Manager.
This topic contains the following information:
FUNCTION altpll_reconfig (clock, reset, data_in[8..0], counter_type[3..0], counter_param[2..0], read_param, write_param, reconfig, pll_scandataout ) WITH (SCAN_CHAIN, SCAN_INIT_FILE ) RETURNS (data_out[8..0], busy, pll_scanclk, pll_scanaclr, pll_scandata );
COMPONENT altpll_reconfig GENERIC (SCAN_CHAIN : STRING; SCAN_INIT_FILE : STRING := "UNUSED"); PORT (clock, reset : IN STD_LOGIC; data_in : IN STD_LOGIC_VECTOR(8 DOWNTO 0) := (OTHERS => '0'); counter_type : IN STD_LOGIC_VECTOR(3 DOWNTO 0) := (OTHERS => '0'); counter_param : IN STD_LOGIC_VECTOR(2 DOWNTO 0) := (OTHERS => '0'); read_param, write_param, reconfig, pll_scandataout : IN STD_LOGIC := '0'; busy, pll_scanclk, pll_scanaclr, pll_scandata : OUT STD_LOGIC; data_out : OUT STD_LOGIC_VECTOR(8 DOWNTO 0); END COMPONENT;
LIBRARY altera_mf; USE altera_mf.altera_mf_components.all;
INPUT PORTS
Port Name | Required | Description | Comments | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
clock |
Yes | Clock input port that drives this megafunction during reconfiguration. | The clock input port must be connected to a valid clock. |
||||||||||||||||||||||||||||||||||
reset |
Yes | Asynchronous reset input to this megafunction. | |||||||||||||||||||||||||||||||||||
data_in[] |
No | Data input that provides parameter value when writing parameters. | Input port [8 DOWNTO 0] wide. |
||||||||||||||||||||||||||||||||||
counter_type[] |
No | Specifies the counter type. | Input port [3 DOWNTO 0] wide. Defaults to 0 . Use the following mapping settings:
|
||||||||||||||||||||||||||||||||||
counter_param[] |
No | Specifies the parameter for the value specified in the counter_type port. |
Input port [2 DOWNTO 0] wide. Defaults to 0 . Use the following mapping settings:
|
||||||||||||||||||||||||||||||||||
read_param |
No | Reads the parameter specified with the counter_type and counter_param port from the cache and fed to dataout port. |
Should only be asserted for one clock cycle to prevent multiple reads. The busy port indicates when the read is complete. |
||||||||||||||||||||||||||||||||||
write_param |
xx_Yes_or_No_xx | Writes the parameter specified with the counter_type and counter_param port to the cache with the value specified in the data_in port. |
Should only be asserted for one clock cycle to prevent multiple reads. The busy port indicates when the read is complete. |
||||||||||||||||||||||||||||||||||
reconfig |
Yes | Specifies that the PLL should be reconfigured with the PLL settings specified in the current cache. | Should only be asserted for one clock cycle to prevent multiple reads. The busy port indicates when the read is complete. |
||||||||||||||||||||||||||||||||||
pll_scandataout |
Yes | Signal driven by the PLL to be reconfigured. | The pll_scandataout port must be connected to the PLL's scandataout port. |
OUTPUT PORTS
Port Name | Required | Description | Comments |
---|---|---|---|
data_out[] |
No | Data read from the cache when read_param is asserted. |
Output port [8 DOWNTO 0] wide. |
busy |
No | Busy signal that indicates when the PLL is reading or writing a parameter to the cache, or configuring the PLL. | While busy is asserted, not parameters can be read or written, and no reconfiguration can be initiated. |
pll_scanclk |
Yes | Drives the scanclk port on the PLL that will be reconfigured. |
|
pll_scanaclr |
Yes | Drives the scanaclr port on the PLL that will be reconfigured. |
|
pll_scandata |
Yes | Drives the scandata port on the PLL that will be reconfigured. |
Parameter | Type | Required | Comments | ||||||
---|---|---|---|---|---|---|---|---|---|
SCAN_CHAIN |
String | Yes | Specifies the type of scan chain. Values are "LONG" or "SHORT" .
|
||||||
SCAN_INIT_FILE |
String | No | Specifies the name of the Memory Initialization File (.mif) or Hexadecimal (Intel-Format) File (.hex) used as the initial value of the scan chain cache. If omitted, the scan chain is initialized with an unknown state. |
This topic prints best in Landscape orientation. |
- PLDWorld - |
|
Created by chm2web html help conversion utility. |