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
......
This diff is collapsed.
......@@ -50,6 +50,8 @@
Library ieee;
use ieee.std_logic_1164.all;
use work.can_constants.all;
package can_types is
----------------------------------------------------------------------------
......
This diff is collapsed.
--------------------------------------------------------------------------------
--
-- CTU CAN FD IP Core
-- Copyright (C) 2015-2018
--
-- Authors:
-- Ondrej Ille <ondrej.ille@gmail.com>
-- Martin Jerabek <martin.jerabek01@gmail.com>
--
-- Project advisors:
-- Jiri Novak <jnovak@fel.cvut.cz>
-- Pavel Pisa <pisa@cmp.felk.cvut.cz>
--
-- Department of Measurement (http://meas.fel.cvut.cz/)
-- Faculty of Electrical Engineering (http://www.fel.cvut.cz)
-- Czech Technical University (http://www.cvut.cz/)
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this VHDL component and associated documentation files (the "Component"),
-- to deal in the Component without restriction, including without limitation
-- the rights to use, copy, modify, merge, publish, distribute, sublicense,
-- and/or sell copies of the Component, and to permit persons to whom the
-- Component is furnished to do so, subject to the following conditions:
--
-- The above copyright notice and this permission notice shall be included in
-- all copies or substantial portions of the Component.
--
-- THE COMPONENT IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-- AUTHORS OR COPYRIGHTHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-- FROM, OUT OF OR IN CONNECTION WITH THE COMPONENT OR THE USE OR OTHER DEALINGS
-- IN THE COMPONENT.
--
-- The CAN protocol is developed by Robert Bosch GmbH and protected by patents.
-- Anybody who wants to implement this IP core on silicon has to obtain a CAN
-- protocol license from Bosch.
--
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Purpose:
-- Definition of context for synthesizable codes of CTU CAN FD.
--------------------------------------------------------------------------------
-- Revision History:
-- 28.12.2018 Created file
--------------------------------------------------------------------------------
context ctu_can_synth_context is
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
Library lib;
use lib.ID_transfer.all;
use lib.can_constants.all;
use lib.can_components.all;
use lib.can_types.all;
use lib.cmn_lib.all;
use lib.drv_stat_pkg.all;
use lib.endian_swap.all;
use lib.reduce_lib.all;
use lib.CAN_FD_register_map.all;
use lib.CAN_FD_frame_format.all;
end context;
......@@ -125,12 +125,8 @@
-- modules to Driving and Status Bus. Added VERSION generics.
--------------------------------------------------------------------------------
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;
context work.ctu_can_synth_context;
use work.can_registers_pkg.all;
entity memory_registers is
......
......@@ -162,10 +162,7 @@
-- lengths even at very high data rates.
--------------------------------------------------------------------------------
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 prescaler is
PORT(
......
......@@ -159,13 +159,7 @@
-- 2. Moved handling of memory pointers to separate entity
--------------------------------------------------------------------------------
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.can_components.all;
context work.ctu_can_synth_context;
entity rx_buffer is
generic(
......
......@@ -48,13 +48,7 @@
-- 14.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_frame_format.all;
use work.CAN_FD_register_map.all;
use work.can_components.all;
context work.ctu_can_synth_context;
entity rx_buffer_fsm is
port(
......
......@@ -55,13 +55,7 @@
-- 15.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_frame_format.all;
use work.CAN_FD_register_map.all;
use work.can_components.all;
context work.ctu_can_synth_context;
entity rx_buffer_pointers is
generic(
......
......@@ -52,11 +52,7 @@
-- 12.11.2018 Changed output output_valid to std_logic from boolean.
--------------------------------------------------------------------------------
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 priority_decoder is
generic(
......
......@@ -134,13 +134,7 @@
-- to separate processes.
--------------------------------------------------------------------------------
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 tx_arbitrator is
generic(
......
......@@ -52,13 +52,7 @@
-- 10.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;
use work.can_components.all;
use work.CAN_FD_frame_format.all;
context work.ctu_can_synth_context;
entity tx_arbitrator_fsm is
port(
......
......@@ -76,11 +76,7 @@
-- 10.11.2018 Separated TXT Buffer FSM to a standalone sub-module.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
use work.can_constants.all;
use work.can_components.all;
context work.ctu_can_synth_context;
entity txt_buffer is
generic(
......
......@@ -48,12 +48,7 @@
-- 07.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_components.all;
use work.CAN_FD_register_map.all;
context work.ctu_can_synth_context;
entity txt_buffer_fsm is
generic(
......
......@@ -62,16 +62,10 @@
-- instead of raw register access functions.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
use work.CAN_FD_register_map.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use lib.pkg_feature_exec_dispath.all;
package abort_transmittion_feature is
......
......@@ -71,17 +71,10 @@
-- of direct register access.
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
use work.CAN_FD_register_map.all;
use work.CAN_FD_frame_format.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use lib.pkg_feature_exec_dispath.all;
package arbitration_feature is
procedure arbitration_feature_exec(
......
......@@ -68,17 +68,10 @@
-- 30.8.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
use work.CAN_FD_frame_format.all;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
use work.CAN_FD_register_map.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use lib.pkg_feature_exec_dispath.all;
package bus_start_feature is
procedure bus_start_feature_exec(
......
......@@ -49,16 +49,10 @@
-- 12.7.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use work.CAN_FD_register_map.all;
use lib.pkg_feature_exec_dispath.all;
package byte_enable_feature is
procedure byte_enable_feature_exec(
......
......@@ -55,17 +55,10 @@
-- 14.7.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use work.CAN_FD_register_map.all;
use work.CAN_FD_frame_format.all;
use lib.pkg_feature_exec_dispath.all;
package data_length_code_feature is
procedure data_length_code_feature_exec(
......
......@@ -65,16 +65,10 @@
-- 9.9.2018 Created file
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use work.CAN_FD_register_map.all;
use lib.pkg_feature_exec_dispath.all;
package data_overrun_clear_feature is
procedure data_overrun_clear_feature_exec(
......
......@@ -51,16 +51,10 @@
-- 06.02.2018 Modified to work with the IP-XACT generated memory map
--------------------------------------------------------------------------------
Library ieee;
USE IEEE.std_logic_1164.all;
USE IEEE.numeric_std.ALL;
USE ieee.math_real.ALL;
use work.can_constants.all;
USE work.CANtestLib.All;
USE work.randomLib.All;
use work.pkg_feature_exec_dispath.all;
use work.CAN_FD_register_map.all;
context work.ctu_can_synth_context;
context work.ctu_can_test_context;
use lib.pkg_feature_exec_dispath.all;