Entity: AxiDac7654Spi
- File: AxiDac7654Spi.vhd
Diagram
Description
Company : SLAC National Accelerator Laboratory
Description: SPI Interface Module
This file is part of 'SLAC Firmware Standard Library'. It is subject to the license terms in the LICENSE.txt file found in the top-level directory of this distribution and at: https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html. No part of 'SLAC Firmware Standard Library', including this file, may be copied, modified, propagated, or distributed except according to
the terms contained in the LICENSE.txt file.
Generics
| Generic name | Type | Value | Description |
|---|---|---|---|
| TPD_G | time | 1 ns | |
| AXI_CLK_FREQ_G | real | 125.0E+6 |
Ports
| Port name | Direction | Type | Description |
|---|---|---|---|
| spiIn | in | AxiDac7654SpiInType | Parallel interface |
| spiOut | out | AxiDac7654SpiOutType | |
| dacCs | out | sl | AC I/O ports |
| dacSck | out | sl | |
| dacSdi | out | sl | |
| dacSdo | in | sl | |
| dacLoad | out | sl | |
| dacLdac | out | sl | |
| dacRst | out | sl | |
| axiClk | in | sl | lobal Signals |
| axiRst | in | sl |
Signals
| Name | Type | Description |
|---|---|---|
| state | StateType | |
| ack | sl | |
| cs | sl | |
| sck | sl | |
| sdi | sl | |
| load | sl | |
| ldac | sl | |
| rst | sl | |
| ch | slv(1 downto 0) | |
| pntr | natural range 0 to 23 | |
| cnt | natural range 0 to MAX_CNT_C |
Constants
| Name | Type | Value | Description |
|---|---|---|---|
| AXI_CLK_PERIOD_C | real | 1.0 / AXI_CLK_FREQ_G | |
| MAX_CNT_C | natural | getTimeRatio(166.4E-9, AXI_CLK_PERIOD_C) |
Types
| Name | Type | Description |
|---|---|---|
| StateType | ( RST_S, IDLE_S, SCK_LOW_S, SCK_HIGH_S, LOAD_S, TLD2_WAIT_S, LDAC_S, HANDSHAKE_S) |
Processes
- unnamed: ( axiClk )
State machines
undefined