Commit b49a3726 authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

Joined all synthesis includes to single context.

Joined all test includes to single context.
parent ad5c5737
......@@ -75,13 +75,7 @@
-- buffer FSM, HW commands and SW commands.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
use work.can_components.ALL;
use work.CAN_FD_register_map.all;
use work.cmn_lib.all;
context work.ctu_can_synth_context;
entity CAN_top_level is
generic(
......
......@@ -51,10 +51,8 @@
-- This is important for reads with side effects, such as
-- reading from FIFO.
--------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use work.can_constants.all;
context work.ctu_can_synth_context;
entity apb_ifc is
generic (
......
......@@ -88,12 +88,7 @@
-- generic synchronisation chain module.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
use work.CAN_FD_register_map.all;
use work.cmn_lib.all;
context work.ctu_can_synth_context;
entity bus_sampling is
GENERIC (
......
......@@ -76,11 +76,7 @@
-- processes.
--------------------------------------------------------------------------------
library ieee;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use WORK.can_constants.all;
use work.cmn_lib.all;
context work.ctu_can_synth_context;
entity bit_destuffing is
port(
......
......@@ -74,11 +74,7 @@
-- processes.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
use work.cmn_lib.all;
context work.ctu_can_synth_context;
entity bit_stuffing is
port(
......
......@@ -49,13 +49,7 @@
-- 24.12.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.can_components.ALL;
use work.CAN_FD_frame_format.ALL;
use work.CAN_FD_frame_format.all;
context work.ctu_can_synth_context;
entity bus_traffic_counters is
port(
......
......@@ -86,13 +86,7 @@
-- 24.12.2018 Separated traffic counters to stand-alone component.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.can_components.ALL;
use work.CAN_FD_frame_format.ALL;
use work.CAN_FD_frame_format.all;
context work.ctu_can_synth_context;
entity can_core is
port(
......
......@@ -63,13 +63,7 @@
-- 15.11.2018 Replaced hard-coded CRC calculation with generic CRC entity.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.CAN_FD_register_map.all;
use work.can_components.all;
context work.ctu_can_synth_context;
entity can_crc is
generic(
......
......@@ -53,11 +53,7 @@
-- 15.11.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.CAN_FD_register_map.all;
context work.ctu_can_synth_context;
entity crc_calc is
generic(
......
......@@ -56,13 +56,7 @@
-- 28.12.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.CAN_FD_register_map.all;
use work.can_components.all;
context work.ctu_can_synth_context;
entity crc_wrapper is
generic(
......
......@@ -68,10 +68,7 @@
-- to transfer from Bus-off to Error active!
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
context work.ctu_can_synth_context;
entity fault_confinement is
PORT(
......
......@@ -55,11 +55,7 @@
-- turning Transceiver or Receiver!
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.CAN_FD_register_map.all;
context work.ctu_can_synth_context;
entity operation_control is
port(
......
......@@ -247,14 +247,7 @@
-- as before), error counter is incremented again!
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.CAN_FD_frame_format.all;
use work.CAN_FD_register_map.all;
use work.endian_swap.all;
context work.ctu_can_synth_context;
entity protocol_control is
port(
......
......@@ -47,9 +47,7 @@
-- May 2018 First Implementation
--------------------------------------------------------------------------------
library ieee;
use ieee.std_logic_1164.all;
use work.can_components.ALL;
context work.ctu_can_synth_context;
entity CTU_CAN_FD_v1_0 is
generic(
......
......@@ -48,9 +48,7 @@
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.CAN_FD_frame_format.all;
use ieee.std_logic_1164.all;
package endian_swap is
......
......@@ -83,10 +83,7 @@
-- "additional" details fields.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
context work.ctu_can_synth_context;
entity event_logger is
generic(
......
......@@ -48,11 +48,7 @@
-- 14.11.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.ID_transfer.all;
context work.ctu_can_synth_context;
entity bit_filter is
generic(
......
......@@ -60,13 +60,7 @@
-- frame was anyway propagated to the output!
--------------------------------------------------------------------------------
Library ieee;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.ID_transfer.all;
use work.can_components.ALL;
use work.CAN_FD_frame_format.all;
context work.ctu_can_synth_context;
entity frame_filters is
generic(
......
......@@ -48,11 +48,7 @@
-- 14.11.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.ID_transfer.all;
context work.ctu_can_synth_context;
entity range_filter is
generic(
......
......@@ -72,13 +72,7 @@
-- generic option...
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
use work.CAN_FD_register_map.all;
use work.reduce_lib.all;
use work.can_components.all;
context work.ctu_can_synth_context;
entity int_manager is
generic(
......
......@@ -61,12 +61,7 @@
-- synthesis.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE WORK.can_constants.ALL;
use work.CAN_FD_register_map.all;
use work.reduce_lib.all;
context work.ctu_can_synth_context;
entity int_module is
generic(
......
......@@ -56,10 +56,10 @@
-- 29.9.2018 Added "inf_RAM_wrapper".
--------------------------------------------------------------------------------
library ieee;
use IEEE.std_logic_1164.all;
use IEEE.numeric_std.all;
use WORK.can_constants.all;
Library ieee;
use ieee.std_logic_1164.all;
use work.can_types.all;
use work.can_constants.all;
use work.can_registers_pkg.all;
package can_components is
......
......@@ -151,394 +151,6 @@ package can_constants is
constant CRC17_POL : std_logic_vector(19 downto 0) := x"3685B";
constant CRC21_POL : std_logic_vector(23 downto 0) := x"302899";
----------------------------------------------------------------------------
-- Driving bus signal ranges
----------------------------------------------------------------------------
--Prescaler
constant DRV_TQ_NBT_LOW : natural := 0;
constant DRV_TQ_NBT_HIGH : natural := 7;
constant DRV_TQ_DBT_LOW : natural := 8;
constant DRV_TQ_DBT_HIGH : natural := 15;
constant DRV_PRS_NBT_LOW : natural := 16;
constant DRV_PRS_NBT_HIGH : natural := 22;
constant DRV_PH1_NBT_LOW : natural := 23;
constant DRV_PH1_NBT_HIGH : natural := 28;
constant DRV_PH2_NBT_LOW : natural := 29;
constant DRV_PH2_NBT_HIGH : natural := 34;
constant DRV_PRS_DBT_LOW : natural := 35;
constant DRV_PRS_DBT_HIGH : natural := 40;
constant DRV_PH1_DBT_LOW : natural := 41;
constant DRV_PH1_DBT_HIGH : natural := 45;
constant DRV_PH2_DBT_LOW : natural := 46;
constant DRV_PH2_DBT_HIGH : natural := 50;
constant DRV_SJW_LOW : natural := 51;
constant DRV_SJW_HIGH : natural := 55;
constant DRV_SJW_DBT_LOW : natural := 56;
constant DRV_SJW_DBT_HIGH : natural := 60;
-- TimeStampGen
constant DRV_TS_1_SRC_LOW : natural := 61;
constant DRV_TS_1_SRC_HIGH : natural := 63;
constant DRV_TS_1_RST_INDEX : natural := 64;
constant DRV_TS_1_MAKE_LOW : natural := 65;
constant DRV_TS_1_MAKE_HIGH : natural := 68;
constant DRV_TS_2_SRC_LOW : natural := 69;
constant DRV_TS_2_SRC_HIGH : natural := 71;
constant DRV_TS_2_RST_INDEX : natural := 72;
constant DRV_TS_2_MAKE_LOW : natural := 73;
constant DRV_TS_2_MAKE_HIGH : natural := 76;
-- Message Filter
constant DRV_FILTER_A_MASK_LOW : natural := 81;
constant DRV_FILTER_A_MASK_HIGH : natural := 109;
constant DRV_FILTER_A_CTRL_LOW : natural := 110;
constant DRV_FILTER_A_CTRL_HIGH : natural := 113;
constant DRV_FILTER_A_BITS_LOW : natural := 114;
constant DRV_FILTER_A_BITS_HIGH : natural := 142;
constant DRV_FILTER_B_MASK_LOW : natural := 143;
constant DRV_FILTER_B_MASK_HIGH : natural := 171;
constant DRV_FILTER_B_CTRL_LOW : natural := 172;
constant DRV_FILTER_B_CTRL_HIGH : natural := 175;
constant DRV_FILTER_B_BITS_LOW : natural := 176;
constant DRV_FILTER_B_BITS_HIGH : natural := 204;
constant DRV_FILTER_C_MASK_LOW : natural := 205;
constant DRV_FILTER_C_MASK_HIGH : natural := 233;
constant DRV_FILTER_C_CTRL_LOW : natural := 234;
constant DRV_FILTER_C_CTRL_HIGH : natural := 237;
constant DRV_FILTER_C_BITS_LOW : natural := 238;
constant DRV_FILTER_C_BITS_HIGH : natural := 266;
constant DRV_FILTER_RAN_CTRL_LOW : natural := 267;
constant DRV_FILTER_RAN_CTRL_HIGH : natural := 270;
constant DRV_FILTER_RAN_LO_TH_LOW : natural := 271;
constant DRV_FILTER_RAN_LO_TH_HIGH : natural := 299;
constant DRV_FILTER_RAN_HI_TH_LOW : natural := 300;
constant DRV_FILTER_RAN_HI_TH_HIGH : natural := 328;
constant DRV_FILTERS_ENA_INDEX : natural := 329;
-- RX Buffer
constant DRV_ERASE_RX_INDEX : natural := 350;
constant DRV_RTSOPT_INDEX : natural := 351;
constant DRV_READ_START_INDEX : natural := 352;
constant DRV_CLR_OVR_INDEX : natural := 353;
-- TXT Buffer
constant DRV_ERASE_TXT2_INDEX : natural := 356;
constant DRV_TXT1_WR : natural := 357;
-- TX Buffer
constant DRV_ERASE_TXT1_INDEX : natural := 366;
constant DRV_TXT2_WR : natural := 367;
-- Interrupt manager indices
constant DRV_INT_CLR_HIGH : natural := 747;
constant DRV_INT_CLR_LOW : natural := 736;
constant DRV_INT_ENA_SET_HIGH : natural := 779;
constant DRV_INT_ENA_SET_LOW : natural := 768;
constant DRV_INT_ENA_CLR_HIGH : natural := 811;
constant DRV_INT_ENA_CLR_LOW : natural := 800;
constant DRV_INT_MASK_SET_HIGH : natural := 843;
constant DRV_INT_MASK_SET_LOW : natural := 832;
constant DRV_INT_MASK_CLR_HIGH : natural := 875;
constant DRV_INT_MASK_CLR_LOW : natural := 864;
constant DRV_SAM_INDEX : natural := 372;
----------------------------------------------------------------------------
-- CAN Core
----------------------------------------------------------------------------
-- Fault Confinement
constant DRV_EWL_LOW : natural := 400;
constant DRV_EWL_HIGH : natural := 407;
constant DRV_ERP_LOW : natural := 408;
constant DRV_ERP_HIGH : natural := 415;
constant DRV_CTR_VAL_LOW : natural := 416;
constant DRV_CTR_VAL_HIGH : natural := 424;
constant DRV_CTR_SEL_LOW : natural := 425;
constant DRV_CTR_SEL_HIGH : natural := 428;
constant DRV_ERR_CTR_CLR : natural := 429;
constant DRV_RXFCRST_INDEX : natural := 430;
constant DRV_TXFCRST_INDEX : natural := 431;
-- Operation control FSM
constant DRV_CAN_FD_ENA_INDEX : natural := 460;
constant DRV_RTR_PREF_INDEX : natural := 461;
constant DRV_BUS_MON_ENA_INDEX : natural := 470;
constant DRV_SELF_TEST_ENA_INDEX : natural := 471;
constant DRV_RETR_LIM_ENA_INDEX : natural := 465;
constant DRV_RETR_TH_LOW : natural := 466;
constant DRV_RETR_TH_HIGH : natural := 469;
constant DRV_ABORT_TRAN_INDEX : natural := 472;
constant DRV_CLR_RX_CTR_INDEX : natural := 473;
constant DRV_CLR_TX_CTR_INDEX : natural := 474;
constant DRV_ACK_FORB_INDEX : natural := 507;
constant DRV_INT_LOOBACK_ENA_INDEX : natural := 508;
constant DRV_ENA_INDEX : natural := 509;
constant DRV_FD_TYPE_INDEX : natural := 510;
----------------------------------------------------------------------------
-- Event logger
----------------------------------------------------------------------------
constant DRV_TRIG_CONFIG_DATA_HIGH : natural := 551;
constant DRV_TRIG_CONFIG_DATA_LOW : natural := 520;
constant DRV_TRIG_SOF_INDEX : natural := 552;
constant DRV_TRIG_ARB_LOST_INDEX : natural := 553;
constant DRV_TRIG_REC_VALID_INDEX : natural := 554;
constant DRV_TRIG_TRAN_VALID_INDEX : natural := 555;
constant DRV_TRIG_OVL_INDEX : natural := 556;
constant DRV_TRIG_ERROR_INDEX : natural := 557;
constant DRV_TRIG_BRS_INDEX : natural := 558;
constant DRV_TRIG_USER_WRITE_INDEX : natural := 559;
constant DRV_TRIG_ARB_START_INDEX : natural := 560;
constant DRV_TRIG_CONTR_START_INDEX : natural := 561;
constant DRV_TRIG_DATA_START_INDEX : natural := 562;
constant DRV_TRIG_CRC_START_INDEX : natural := 563;
constant DRV_TRIG_ACK_REC_INDEX : natural := 564;
constant DRV_TRIG_ACK_N_REC_INDEX : natural := 565;
constant DRV_TRIG_EWL_REACHED_INDEX : natural := 566;
constant DRV_TRIG_ERP_CHANGED_INDEX : natural := 567;
constant DRV_TRIG_TRAN_START_INDEX : natural := 568;
constant DRV_TRIG_REC_START_INDEX : natural := 569;
constant DRV_CAP_SOF_INDEX : natural := 580;
constant DRV_CAP_ARB_LOST_INDEX : natural := 581;
constant DRV_CAP_REC_VALID_INDEX : natural := 582;
constant DRV_CAP_TRAN_VALID_INDEX : natural := 583;
constant DRV_CAP_OVL_INDEX : natural := 584;
constant DRV_CAP_ERROR_INDEX : natural := 585;
constant DRV_CAP_BRS_INDEX : natural := 586;
constant DRV_CAP_ARB_START_INDEX : natural := 587;
constant DRV_CAP_CONTR_START_INDEX : natural := 588;
constant DRV_CAP_DATA_START_INDEX : natural := 589;
constant DRV_CAP_CRC_START_INDEX : natural := 590;
constant DRV_CAP_ACK_REC_INDEX : natural := 591;
constant DRV_CAP_ACK_N_REC_INDEX : natural := 592;
constant DRC_CAP_EWL_REACHED_INDEX : natural := 593;
constant DRV_CAP_ERP_CHANGED_INDEX : natural := 594;
constant DRV_CAP_TRAN_START_INDEX : natural := 595;
constant DRV_CAP_REC_START_INDEX : natural := 596;
constant DRV_CAP_SYNC_EDGE_INDEX : natural := 597;
constant DRV_CAP_STUFFED_INDEX : natural := 598;
constant DRV_CAP_DESTUFFED_INDEX : natural := 599;
constant DRV_CAP_OVR_INDEX : natural := 600;
constant DRV_LOG_CMD_STR_INDEX : natural := 610;
constant DRV_LOG_CMD_ABT_INDEX : natural := 611;
constant DRV_LOG_CMD_UP_INDEX : natural := 612;
constant DRV_LOG_CMD_DOWN_INDEX : natural := 613;
----------------------------------------------------------------------------
-- RX, TX and TXT Buffer frame format signal indexes
----------------------------------------------------------------------------
--Tx Message format (Format A)
constant TX_FFW_HIGH : natural := 639;
constant TX_FFW_LOW : natural := 608;
constant TX_IDW_HIGH : natural := 607;
constant TX_IDW_LOW : natural := 576;
--16 Data words for up to 64 bytes of data
constant TX_DATAW_HIGH : natural := 575;
constant TX_DATA1W_LOW : natural := 544;
constant TX_DATAW_LOW : natural := 64;
--Txt message format (Format B)
constant TXT_FFW_HIGH : natural := 639;
constant TXT_FFW_LOW : natural := 608;
constant TXT_IDW_HIGH : natural := 607;
constant TXT_IDW_LOW : natural := 576;
constant TXT_TSLOW_HIGH : natural := 575;
constant TXT_TSLOW_LOW : natural := 544;
constant TXT_TSUPP_HIGH : natural := 543;
constant TXT_TSUPP_LOW : natural := 512;
constant TXT_DATAW_HIGH : natural := 511;
constant TXT_DATAW_LOW : natural := 0;
----------------------------------------------------------------------------
-- Status bus Indices
----------------------------------------------------------------------------