source: PlatformSupport/CustomPeripherals/pcores/clock_board_config_v1_05_a/data/clock_board_config_v2_1_0.mpd

Last change on this file was 1695, checked in by murphpo, 12 years ago

Updated clock_board_config core MPD for compatibility with XPS/BSB 13.4

File size: 8.4 KB
Line 
1###################################################################
2##
3## Name     : clock_board_config
4## Desc     : Microprocessor Peripheral Description
5##          : Automatically generated by PsfUtility
6##
7###################################################################
8
9BEGIN clock_board_config
10
11## Peripheral Options
12OPTION IPTYPE = PERIPHERAL
13OPTION IMP_NETLIST = TRUE
14OPTION HDL = VERILOG
15OPTION USAGE_LEVEL = BASE_USER
16OPTION DESC = WARP Clock Board Configuration Core
17OPTION LONG_DESC = "Configures the Clock Board after FPGA configuration- requied to use the Clock Board oscillators as the master FPGA clock, sampling clock for Radio Boards and RF refence clock for Radio Boards."
18OPTION IP_GROUP = USER
19OPTION ARCH_SUPPORT_MAP = (virtex4=PREFERRED, virtex2p=PREFERRED, others=AVAILABLE)
20OPTION RUN_NGCBUILD = FALSE
21OPTION STYLE = HDL
22
23IO_INTERFACE IO_IF = clock_board_config, IO_TYPE = WARP_CLKBRD_CONFIG_V1
24
25## Bus Interfaces
26# This core is not attached to any busses
27
28## Generics for VHDL or Parameters for Verilog
29
30PARAMETER radio_clk_source_sel_mode = 0, DT = std_logic, DESC = Selects whether to use radio_clk_src_sel port at boot to select radio RF clock source, VALUES = (0=Use Parameter, 1=Use Port), PERMIT = BASE_USER
31PARAMETER logic_clk_source_sel_mode = 0, DT = std_logic, DESC = Selects whether to use logic_clk_src_sel port at boot to select sampling clock source, VALUES = (0=Use Parameter, 1=Use Port), PERMIT = BASE_USER
32
33#platgen will infer these hex values and defparam them in the Verilog like "defparam clkbrdconfig_0.fpga_radio_clk_source = 'h1AFF;"
34#since they're 16 bits anyway, the ambiguous bit length in the defparam'd value is no problem
35#PARAMETER fpga_radio_clk_source = 0x1AFF, DT = std_logic_vector, DESC = Selects radio reference clock source, VALUES = (0x1AFF=Oscillator, 0x1DFF=External Coax), PERMIT = BASE_USER
36#PARAMETER fpga_logic_clk_source = 0x1AFF, DT = std_logic_vector, DESC = Selects FPGA/sampling clock source, VALUES = (0x1AFF=Oscillator, 0x1DFF=External Coax), PERMIT = BASE_USER
37PARAMETER fpga_radio_clk_source = 0, DT = std_logic, DESC = Selects radio reference clock source, VALUES = (0=Oscillator, 1=External Coax), PERMIT = BASE_USER
38PARAMETER fpga_logic_clk_source = 0, DT = std_logic, DESC = Selects FPGA/sampling clock source, VALUES = (0=Oscillator, 1=External Coax), PERMIT = BASE_USER
39
40# Parameters controlling en/disable on radio reference clk outputs
41#  0x01ff disables the corresponding output
42#  0x1eff enables the corresponding ouptput
43# By default, outputs for slots 2 and 3 are enabled, matching
44#  the hardware config for a WARP MIMO kit
45PARAMETER radio_clk_out4_mode = 0x01ff, DT = std_logic_vector, DESC = Selects whether to enable or disable the radio reference clock on J12 - disabled by default, VALUES = (0x01ff=Disabled, 0x1eff=Enabled), PERMIT = BASE_USER
46PARAMETER radio_clk_out5_mode = 0x1eff, DT = std_logic_vector, DESC = Selects whether to enable or disable the radio reference clock on J11 - disabled by default, VALUES = (0x01ff=Disabled, 0x1eff=Enabled), PERMIT = BASE_USER
47PARAMETER radio_clk_out6_mode = 0x1eff, DT = std_logic_vector, DESC = Selects whether to enable or disable the radio reference clock on J10 - disabled by default, VALUES = (0x01ff=Disabled, 0x1eff=Enabled), PERMIT = BASE_USER
48PARAMETER radio_clk_out7_mode = 0x01ff, DT = std_logic_vector, DESC = Selects whether to enable or disable the radio reference clock on J6 - disabled by default, VALUES = (0x01ff=Disabled, 0x1eff=Enabled), PERMIT = BASE_USER
49
50# Parameters controlling en/disable on radio sampling clk outputs
51#  0x02ff disables the corresponding output
52#  0x04ff enables the corresponding output with min (340mV) drive
53#  0x08ff enables the corresponding output with max (810mV) drive
54# By default, outputs for slots 2 and 3 are enabled, matching
55#  the hardware config for a WARP MIMO kit
56PARAMETER logic_clk_out0_mode = 0x02ff, DT = std_logic_vector, DESC = Selects whether to enable or disable the sampling clock on J8 - disabled by default, VALUES = (0x02ff=Disabled, 0x04ff=Enabled - 340mV drive, 0x00ff=Enabled - 500mV drive, 0x0Cff=Enabled - 660mV drive, 0x08ff=Enabled - 810mV drive), PERMIT = BASE_USER
57PARAMETER logic_clk_out1_mode = 0x02ff, DT = std_logic_vector, DESC = Selects whether to enable or disable the sampling clock on J7 - disabled by default, VALUES = (0x02ff=Disabled, 0x04ff=Enabled - 340mV drive, 0x00ff=Enabled - 500mV drive, 0x0Cff=Enabled - 660mV drive, 0x08ff=Enabled - 810mV drive), PERMIT = BASE_USER
58PARAMETER logic_clk_out2_mode = 0x08ff, DT = std_logic_vector, DESC = Selects whether to enable or disable the sampling clock on J9 - 810mV drive by default, VALUES = (0x02ff=Disabled, 0x04ff=Enabled - 340mV drive, 0x00ff=Enabled - 500mV drive, 0x0Cff=Enabled - 660mV drive, 0x08ff=Enabled - 810mV drive), PERMIT = BASE_USER
59PARAMETER logic_clk_out3_mode = 0x08ff, DT = std_logic_vector, DESC = Selects whether to enable or disable the sampling clock on J13 - 810mV drive by default, VALUES = (0x02ff=Disabled, 0x04ff=Enabled - 340mV drive, 0x00ff=Enabled - 500mV drive, 0x0Cff=Enabled - 660mV drive, 0x08ff=Enabled - 810mV drive), PERMIT = BASE_USER
60
61# Parameters controlling the clock outputs for off-board use
62#  These ports are only used when sharing clocks between nodes
63PARAMETER radio_clk_forward_out_mode = 0x0BFF, DT = std_logic_vector, DESC = Selects whether to enable or disable the radio reference clock forward port for off-board use - disabled by default, VALUES = (0x0BFF=Disabled, 0x08FF=Enabled), PERMIT = BASE_USER
64PARAMETER logic_clk_forward_out_mode = 0x1FFF, DT = std_logic_vector, DESC = Selects whether to enable or disable the sampling clock forward port for off-board use - disabled by default, VALUES = (0x1FFF=Disabled, 0x1EFF=Enabled), PERMIT = BASE_USER
65
66PARAMETER sys_clk_freq_hz = 0x05f5e100, DT = std_logic_vector, DESC = Frequency of clock at sys_clk input, VALUES = (0x05f5e100=100MHz, 0x1F78A40=33MHz), PERMIT = BASE_USER
67PARAMETER scp_min_freq_hz = 0x002625a0, DT = std_logic_vector, DESC = Minimum serial I/O frequency, VALUES = (0x002625a0=25MHz), PERMIT = BASE_USER
68
69PARAMETER scp_cyc_leng_a = 0x00000028, DT = std_logic_vector, DESC = Length of serial I/O write cycle, VALUES = (0x00000028=40), PERMIT = BASE_USER
70PARAMETER scp_cyc_leng_b = 0x00000028, DT = std_logic_vector, DESC = Length of serial I/O write cycle, VALUES = (0x00000028=40), PERMIT = BASE_USER
71PARAMETER scp_cyc_leng = 0x00000028, DT = std_logic_vector, DESC = Length of serial I/O write cycle, VALUES = (0x00000028=40), PERMIT = BASE_USER
72
73## Ports
74PORT sys_clk = "", DIR = I, SIGIS = CLK, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_CLKIN, PERMIT = BASE_USER
75PORT sys_rst = "net_gnd", DIR = I, SIGIS = RST, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_RST, PERMIT = BASE_USER
76PORT cfg_radio_dat_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_RFDOUT, PERMIT = BASE_USER
77PORT cfg_radio_csb_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_RFCS, PERMIT = BASE_USER
78PORT cfg_radio_en_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_RFEN, PERMIT = BASE_USER
79PORT cfg_radio_clk_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_RFSCLK, PERMIT = BASE_USER
80PORT cfg_logic_dat_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_SAMPDOUT, PERMIT = BASE_USER
81PORT cfg_logic_csb_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_SAMPCS, PERMIT = BASE_USER
82PORT cfg_logic_en_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_SAMPEN, PERMIT = BASE_USER
83PORT cfg_logic_clk_out = "", DIR = O, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_SAMPSCLK, PERMIT = BASE_USER
84
85PORT radio_clk_src_sel = "net_gnd", DIR = I, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_RFSRCSEL, PERMIT = BASE_USER
86PORT logic_clk_src_sel = "net_gnd", DIR = I, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_SAMPSRCSEL, PERMIT = BASE_USER
87
88
89#This output must be connected to the reset of the project's
90# clock generator, in order to hold the system's DCMs in reset
91# until the clock board outputs are providing valid clock signals
92#Unfortunately it seems BSB can't make this connection automatically,
93# since BSB infers the DCM later, when instantiating the clock_genertor
94#The ASSIGNMENT=REQUIRE here throws an early error on purpose
95#  (vs. waiting to see things not work in hardware)
96PORT config_invalid = "", DIR = O, ASSIGNMENT = REQUIRE, SIGIS = RST, IO_IF = clock_board_config, IO_IS=CLKBRDCFG_CLKINV, PERMIT = BASE_USER
97
98END
Note: See TracBrowser for help on using the repository browser.