|
| 1 | + |
| 2 | +library IEEE; |
| 3 | +use IEEE.STD_LOGIC_1164.all; |
| 4 | + |
| 5 | +use work.emp_framework_decl.all; |
| 6 | +use work.emp_device_types.all; |
| 7 | +use work.emp_slink_types.all; |
| 8 | + |
| 9 | +package emp_project_decl is |
| 10 | + |
| 11 | + constant PAYLOAD_REV : std_logic_vector(31 downto 0) := X"12345678"; |
| 12 | + |
| 13 | + -- Latency buffer size |
| 14 | + constant LB_ADDR_WIDTH : integer := 10; |
| 15 | + |
| 16 | + -- Clock setup |
| 17 | + constant CLOCK_COMMON_RATIO : integer := 36; |
| 18 | + constant CLOCK_RATIO : integer := 6; |
| 19 | + constant CLOCK_AUX_DIV : clock_divisor_array_t := (18, 9, 4); -- Dividers of CLOCK_COMMON_RATIO * 40 MHz |
| 20 | + |
| 21 | + -- Readdjust if latency changes for FPGA1 algorithm |
| 22 | + constant PAYLOAD_LATENCY : integer := 140; |
| 23 | + |
| 24 | + -- F1 transmits to F2 on inter-fpga links |
| 25 | + constant REGION_CONF : region_conf_array_t := ( |
| 26 | + 0 => kDummyRegion, -- service c2c |
| 27 | + 1 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 28 | + 2 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 29 | + 3 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 30 | + 4 => kDummyRegion, -- not routed |
| 31 | + 5 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 32 | + 6 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 33 | + 7 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 34 | + 8 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 35 | + 9 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 36 | + 10 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 37 | + 11 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 38 | + 12 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 39 | + 13 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 40 | + 14 => (no_mgt, no_buf, no_fmt, buf, gty25), -- fpga-fpga |
| 41 | + 15 => kDummyRegion, -- not routed |
| 42 | +------cross |
| 43 | +----- all MGTs instantiated bidirectionally for now |
| 44 | + 16 => kDummyRegion, -- not routed |
| 45 | + 17 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 46 | + 18 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 47 | + 19 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 48 | + 20 => kDummyRegion, -- not routed |
| 49 | + 21 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 50 | + 22 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 51 | + 23 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 52 | + 24 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 53 | + 25 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 54 | + 26 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 55 | + 27 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 56 | + 28 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 57 | + 29 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 58 | + 30 => (gty25, buf, no_fmt, buf, gty25), -- firefly |
| 59 | + 31 => kDummyRegion, -- service tcds |
| 60 | + |
| 61 | + others => kDummyRegion |
| 62 | + ); |
| 63 | + |
| 64 | + -- Specify the slink quad using the corresponding region conf ID |
| 65 | + -- Specify slink channels to enable using the channel mask |
| 66 | + constant SLINK_CONF : slink_conf_array_t := ( |
| 67 | + others => kNoSlink |
| 68 | + ); |
| 69 | + |
| 70 | + |
| 71 | +end emp_project_decl; |
0 commit comments