|
| 1 | +------------------------------------------------------------------------------ |
| 2 | +-- This file is a part of the GRLIB VHDL IP LIBRARY |
| 3 | +-- Copyright (C) 2003 - 2008, Gaisler Research |
| 4 | +-- Copyright (C) 2008 - 2014, Aeroflex Gaisler |
| 5 | +-- Copyright (C) 2015 - 2023, Cobham Gaisler |
| 6 | +-- Copyright (C) 2023, Frontgrade Gaisler |
| 7 | +-- |
| 8 | +-- This program is free software; you can redistribute it and/or modify |
| 9 | +-- it under the terms of the GNU General Public License as published by |
| 10 | +-- the Free Software Foundation; version 2. |
| 11 | +-- |
| 12 | +-- This program is distributed in the hope that it will be useful, |
| 13 | +-- but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | +-- GNU General Public License for more details. |
| 16 | +-- |
| 17 | +-- You should have received a copy of the GNU General Public License |
| 18 | +-- along with this program; if not, write to the Free Software |
| 19 | +-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 20 | +----------------------------------------------------------------------------- |
| 21 | +-- Package: config |
| 22 | +-- File: config.vhd |
| 23 | +-- Description: GRLIB Global configuration package. Can be overriden |
| 24 | +-- by local config packages in template designs. |
| 25 | +------------------------------------------------------------------------------ |
| 26 | + |
| 27 | +library ieee; |
| 28 | +use ieee.std_logic_1164.all; |
| 29 | +library grlib; |
| 30 | +use grlib.config_types.all; |
| 31 | + |
| 32 | +package config is |
| 33 | + |
| 34 | +-- AHBDW - AHB data with |
| 35 | +-- |
| 36 | +-- Valid values are 32, 64, 128 and 256 |
| 37 | +-- |
| 38 | +-- The value here sets the width of the AMBA AHB data vectors for all |
| 39 | +-- cores in the library. |
| 40 | +-- |
| 41 | +constant CFG_AHBDW : integer := 64; |
| 42 | + |
| 43 | + |
| 44 | +-- CFG_AHB_ACDM - Enable AMBA Compliant Data Muxing in cores |
| 45 | +-- |
| 46 | +-- Valid values are 0 and 1 |
| 47 | +-- |
| 48 | +-- 0: All GRLIB cores that use the ahbread* programs defined in the AMBA package |
| 49 | +-- will read their data from the low part of the AHB data vector. |
| 50 | +-- |
| 51 | +-- 1: All GRLIB cores that use the ahbread* programs defined in the AMBA package |
| 52 | +-- will select valid data, as defined in the AMBA AHB standard, from the |
| 53 | +-- AHB data vectors based on the address input. If a core uses a function |
| 54 | +-- that does not have the address input, a failure will be asserted. |
| 55 | +-- |
| 56 | +-- The value of CFG_AHB_ACDM is assigned to the constant CORE_ACDM in the |
| 57 | +-- grlib.amba package. Note that this setting is separate from the ACDM setting |
| 58 | +-- of the AHBCTRL core (which is set directly via a AHBCTRL VHDL generic). |
| 59 | +-- |
| 60 | +constant CFG_AHB_ACDM : integer := 0; |
| 61 | + |
| 62 | +-- GRLIB_CONFIG_ARRAY - Array of configuration values |
| 63 | +-- |
| 64 | +-- The length of this array and the meaning of different positions is defined |
| 65 | +-- in the grlib.config_types package. |
| 66 | +constant GRLIB_CONFIG_ARRAY : grlib_config_array_type := ( |
| 67 | + grlib_debug_level => 0, |
| 68 | + grlib_debug_mask => 0, |
| 69 | + grlib_techmap_strict_ram => 0, |
| 70 | + grlib_techmap_testin_extra => 0, |
| 71 | + grlib_sync_reset_enable_all => 0, |
| 72 | + grlib_async_reset_enable => 0, |
| 73 | + grlib_amba_inc_nirq => 0, |
| 74 | + grlib_little_endian => 0, |
| 75 | + others => 0); |
| 76 | + |
| 77 | +end; |
| 78 | + |
0 commit comments