SURF  1.0
AxiDac7654Pkg.vhd
Go to the documentation of this file.
1 -------------------------------------------------------------------------------
2 -- File : AxiDac7654Pkg.vhd
3 -- Company : SLAC National Accelerator Laboratory
4 -- Created : 2015-03-20
5 -- Last update: 2015-03-23
6 -------------------------------------------------------------------------------
7 -- Description: AxiDac7654 Package File
8 -------------------------------------------------------------------------------
9 -- This file is part of 'SLAC Firmware Standard Library'.
10 -- It is subject to the license terms in the LICENSE.txt file found in the
11 -- top-level directory of this distribution and at:
12 -- https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
13 -- No part of 'SLAC Firmware Standard Library', including this file,
14 -- may be copied, modified, propagated, or distributed except according to
15 -- the terms contained in the LICENSE.txt file.
16 -------------------------------------------------------------------------------
17 
18 library ieee;
19 use ieee.std_logic_1164.all;
20 
21 use work.StdRtlPkg.all;
22 
23 package AxiDac7654Pkg is
24 --! @file
25  --! @ingroup devices_Ti_dac7654
26 
27  type AxiDac7654InType is record
28  sdo : sl;
29  end record;
30  type AxiDac7654InArray is array (natural range <>) of AxiDac7654InType;
31  type AxiDac7654InVectorArray is array (integer range<>, integer range<>)of AxiDac7654InType;
33  sdo => '0');
34 
35  type AxiDac7654OutType is record
36  cs : sl;
37  sck : sl;
38  sdi : sl;
39  load : sl;
40  ldac : sl;
41  rst : sl;
42  end record;
43  type AxiDac7654OutArray is array (natural range <>) of AxiDac7654OutType;
44  type AxiDac7654OutVectorArray is array (integer range<>, integer range<>)of AxiDac7654OutType;
46  cs => '1',
47  sck => '1',
48  sdi => '0',
49  load => '1',
50  ldac => '0',
51  rst => '0');
52 
53  type AxiDac7654SpiInType is record
54  req : sl;
55  data : Slv16Array(0 to 3);
56  end record;
58  req => '1',
59  data => (others => x"8000"));
60 
61  type AxiDac7654SpiOutType is record
62  ack : sl;
63  end record;
65  ack => '0');
66 
67  type AxiDac7654StatusType is record
69  end record;
72 
73  type AxiDac7654ConfigType is record
75  end record;
78 
79 end package;
AxiDac7654InType :=(sdo => '0') AXI_DAC7654_IN_INIT_C
std_logic sl
Definition: StdRtlPkg.vhd:28
array(natural range <> ) of AxiDac7654OutType AxiDac7654OutArray
array(integer range <> ,integer range <> ) of AxiDac7654OutType AxiDac7654OutVectorArray
array(natural range <> ) of AxiDac7654InType AxiDac7654InArray
array(integer range <> ,integer range <> ) of AxiDac7654InType AxiDac7654InVectorArray
AxiDac7654OutType :=(cs => '1',sck => '1',sdi => '0',load => '1',ldac => '0',rst => '0') AXI_DAC7654_OUT_INIT_C
_library_ ieeeieee
AxiDac7654SpiOutType :=(ack => '0') AXI_DAC7654_SPI_OUT_INIT_C
array(natural range <> ) of slv( 15 downto 0) Slv16Array
Definition: StdRtlPkg.vhd:395
AxiDac7654SpiOutType spi
AxiDac7654StatusType :=(spi => AXI_DAC7654_SPI_OUT_INIT_C) AXI_DAC7654_STATUS_INIT_C
AxiDac7654SpiInType :=(req => '1',data =>( others => x"8000")) AXI_DAC7654_SPI_IN_INIT_C
Slv16Array( 0 to 3) data
AxiDac7654ConfigType :=(spi => AXI_DAC7654_SPI_IN_INIT_C) AXI_DAC7654_CONFIG_INIT_C