fpga: x400: cpld: Add support for X410 motherboard CPLD

Co-authored-by: Humberto Jimenez <humberto.jimenez@ni.com>
Co-authored-by: Javier Valenzuela <javier.valenzuela@ni.com>


Original-commit: 7015f5ed2d495f3908773b7c7d74864d0cc3871a
This commit is contained in:
Max Köhler
2021-06-10 11:56:58 -05:00
committed by Aaron Rossetto
co-authored by Humberto Jimenez Javier Valenzuela
parent 61782b02d7
commit 7e59e9516d
42 changed files with 8377 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
# GUI logfile
PcieCmi.qarlog
Binary file not shown.
+38
View File
@@ -0,0 +1,38 @@
--
-- Copyright 2021 Ettus Research, a National Instruments Brand
--
-- SPDX-License-Identifier: LGPL-3.0-or-later
--
-- Module: PcieCmi
--
-- Description:
--
-- This is an automatically generated file.
-- Do not modify this file directly!
--
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity PcieCmi is
generic (
kSimulation : natural := 0
);
port (
Clk : in std_logic ;
acReset : in std_logic ;
cSerialNumber : in std_logic_vector (39 downto 0);
cBoardIsReady : in std_logic ;
cCmiReset : out std_logic ;
cOtherSideDetected : out std_logic ;
aCblPrsnt_n : in std_logic ;
aSdaIn : in std_logic ;
aSdaOut : out std_logic ;
aSclIn : in std_logic ;
aSclOut : out std_logic
);
end entity PcieCmi;
architecture rtl of PcieCmi is
begin
end architecture rtl;
+93
View File
@@ -0,0 +1,93 @@
--
-- Copyright 2021 Ettus Research, a National Instruments Brand
--
-- SPDX-License-Identifier: LGPL-3.0-or-later
--
-- Module: PcieCmiWrapper
--
-- Description:
--
-- This is an automatically generated file.
-- Do not modify this file directly!
--
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
--synopsys translate_off
--For synthesis, netlist comes from an qxp and there is no external library
--For simulation in client, netlist comes from PcieCmiLib external library
--For simulation in dev branch, netlist comes from work library.
--Binding will work fine in both simulation cases as long as PcieCmi is compiled
-- to either library. In dev branch PcieCmiLib will be an empty library just so
-- ModelSim doesn't complain.
library PcieCmiLib;
--synopsys translate_on
entity PcieCmiWrapper is
generic (
kSimulation : natural := 0 -- set to 1 to speedup simulation
);
port (
Clk : in std_logic; -- 40 MHz clock
acReset : in std_logic;
cSerialNumber : in std_logic_vector(39 downto 0);
cBoardIsReady : in std_logic;
cCmiReset : out std_logic;
cOtherSideDetected : out std_logic;
aCblPrsnt_n : in std_logic;
aSdaIn : in std_logic;
aSdaOut : out std_logic;
aSclIn : in std_logic;
aSclOut : out std_logic
);
end PcieCmiWrapper;
architecture rtl of PcieCmiWrapper is
component PcieCmi
generic (kSimulation : natural := 0);
port (
Clk : in std_logic;
acReset : in std_logic;
cSerialNumber : in std_logic_vector(39 downto 0);
cBoardIsReady : in std_logic;
cCmiReset : out std_logic;
cOtherSideDetected : out std_logic;
aCblPrsnt_n : in std_logic;
aSdaIn : in std_logic;
aSdaOut : out std_logic;
aSclIn : in std_logic;
aSclOut : out std_logic);
end component;
begin
-- Just forward all signals to lower level entity.
-- Leave the simulation generic in place as it important to be able to
-- simulate the netlist in reasonable time. For the synthesis in the client
-- the generic is ignored as the netlist is translated with kSimulation set to
-- default value and "overwrites" it.
--vhook PcieCmi
PcieCmix: PcieCmi
generic map (kSimulation => kSimulation) --natural:=0
port map (
Clk => Clk, --in std_logic
acReset => acReset, --in std_logic
cSerialNumber => cSerialNumber, --in std_logic_vector(39:0)
cBoardIsReady => cBoardIsReady, --in std_logic
cCmiReset => cCmiReset, --out std_logic
cOtherSideDetected => cOtherSideDetected, --out std_logic
aCblPrsnt_n => aCblPrsnt_n, --in std_logic
aSdaIn => aSdaIn, --in std_logic
aSdaOut => aSdaOut, --out std_logic
aSclIn => aSclIn, --in std_logic
aSclOut => aSclOut); --out std_logic
end architecture rtl;