1 -------------------------------------------------------------------------------     2 -- File       : Gth7QuadPll.vhd     3 -- Company    : SLAC National Accelerator Laboratory     4 -- Created    : 2015-04-01     5 -- Last update: 2016-03-08     6 -------------------------------------------------------------------------------     7 -- Description: Wrapper for Xilinx 7-series GTH's QPLL     8 -------------------------------------------------------------------------------     9 -- This file is part of 'SLAC Firmware Standard Library'.    10 -- It is subject to the license terms in the LICENSE.txt file found in the     11 -- top-level directory of this distribution and at:     12 --    https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.     13 -- No part of 'SLAC Firmware Standard Library', including this file,     14 -- may be copied, modified, propagated, or distributed except according to     15 -- the terms contained in the LICENSE.txt file.    16 -------------------------------------------------------------------------------    19 use ieee.std_logic_1164.
all;
    29  --! @ingroup xilinx_7Series_gth7    36       QPLL_CFG_G          :       := x"04801C7";
  -- QPLL_CFG_G[6] selects the QPLL frequency band: 0 = upper band, 1 = lower band    57 end entity Gth7QuadPll;
    78    -------------------------------------------------------------------------------    79    -- QPLL clock select. Only ever use 1 clock to drive qpll. Never switch clocks.    80    -------------------------------------------------------------------------------    91          -- Simulation attributes    95          ------------------COMMON BLOCK Attributes---------------    96          BIAS_CFG                 => 
(x"0000040000001050"
),
    97          COMMON_CFG               => 
(x"0000001C"
),
    99          QPLL_CLKOUT_CFG          => 
("1111"
),
   100          QPLL_COARSE_FREQ_OVRD    => 
("010000"
),
   101          QPLL_COARSE_FREQ_OVRD_EN => 
('0'
),
   102          QPLL_CP                  => 
("0000011111"
),
   103          QPLL_CP_MONITOR_EN       => 
('0'
),
   104          QPLL_DMONITOR_SEL        => 
('0'
),
   106          QPLL_FBDIV_MONITOR_EN    => 
('0'
),
   108          QPLL_INIT_CFG            => 
(x"000006"
),
   109          QPLL_LOCK_CFG            => 
(x"05E8"
),
   110          QPLL_LPF                 => 
("1111"
),
   112          RSVD_ATTR0               => 
(x"0000"
),
   113          RSVD_ATTR1               => 
(x"0000"
),
   114          QPLL_RP_COMP             => 
('0'
),
   115          QPLL_VTRL_RESET          => 
("00"
),
   118          ------------- Common Block  - Dynamic Reconfiguration Port (DRP) -----------   126          ---------------------- Common Block  - Ref Clock Ports ---------------------   134          ------------------------- Common Block -  QPLL Ports -----------------------   135          QPLLDMONITOR     => 
open,
   136          ----------------------- Common Block - Clocking Ports ----------------------   139          REFCLKOUTMONITOR => 
open,
   140          ------------------------- Common Block - QPLL Ports ------------------------   141          BGRCALOVRDENB    => '1',
   143          QPLLFBCLKLOST    => 
open,
   152          QPLLRSVD1        => "
0000000000000000",
   153          QPLLRSVD2        => "
11111",
   154          --------------------------------- QPLL Ports -------------------------------   158          BGRCALOVRD       => "
00000",
   159          PMARSVD          => "
00000000",
   189 end architecture mapping;
 
QPLL_REFCLK_SEL_Gbit_vector  :=   "001"
 
ADDR_WIDTH_Gpositive   range  1 to  32:= 16
 
QPLL_REFCLK_DIV_Ginteger  := 1
 
out drpAddrslv(   ADDR_WIDTH_G- 1 downto  0)  
 
EN_ARBITRATION_Gboolean  :=   false
 
DATA_WIDTH_Gpositive   range  1 to  32:= 16
 
out axilReadSlaveAxiLiteReadSlaveType  
 
QPLL_CFG_Gbit_vector  := x"04801C7"
 
in drpDoslv(   DATA_WIDTH_G- 1 downto  0)  
 
COMMON_CLK_Gboolean  :=   false
 
in axilWriteMasterAxiLiteWriteMasterType  :=   AXI_LITE_WRITE_MASTER_INIT_C
 
SIM_RESET_SPEEDUP_Gstring  :=   "TRUE"
 
gthe2_common gthe2_common_0_igthe2_common_0_i
 
out axilWriteSlaveAxiLiteWriteSlaveType  
 
QPLL_FBDIV_RATIO_Gbit  := '1'
 
in axilReadMasterAxiLiteReadMasterType  :=   AXI_LITE_READ_MASTER_INIT_C
 
slv( 1 downto  0)  :=   "11" AXI_RESP_DECERR_C
 
in axilReadMasterAxiLiteReadMasterType  
 
SIM_VERSION_Gstring  :=   "2.0"
 
out axilReadSlaveAxiLiteReadSlaveType  
 
TIMEOUT_Gpositive  := 4096
 
in qPllPowerDownsl  := '0'
 
AxiLiteReadMasterType  :=(araddr  =>( others => '0'),arprot  =>( others => '0'),arvalid  => '0',rready  => '1') AXI_LITE_READ_MASTER_INIT_C
 
AXI_ERROR_RESP_Gslv( 1 downto  0)  :=   AXI_RESP_DECERR_C
 
in axilWriteMasterAxiLiteWriteMasterType  
 
QPLL_FBDIV_Gbit_vector  :=   "0100100000"
 
AxiLiteWriteMasterType  :=(awaddr  =>( others => '0'),awprot  =>( others => '0'),awvalid  => '0',wdata  =>( others => '0'),wstrb  =>( others => '1'),wvalid  => '0',bready  => '1') AXI_LITE_WRITE_MASTER_INIT_C
 
AXI_ERROR_RESP_Gslv( 1 downto  0)  :=   AXI_RESP_DECERR_C
 
out axilWriteSlaveAxiLiteWriteSlaveType  
 
out drpDislv(   DATA_WIDTH_G- 1 downto  0)