Package: SsiPkg
- File: SsiPkg.vhd
Constants
Name | Type | Value | Description |
---|---|---|---|
SSI_EOFE_C | natural | 0 | |
SSI_SOF_C | natural | 1 | |
SSI_TUSER_BITS_C | positive | 2 | |
SSI_TDEST_BITS_C | positive | 4 | |
SSI_TID_BITS_C | natural | 0 | |
SSI_TSTRB_EN_C | boolean | false | |
SSI_MASTER_FORCE_EOFE_C | AxiStreamMasterType | ( tValid => '1', -- Force tData => (others => '0'), tStrb => (others => '1'), tKeep => (others => '1'), tLast => '1', -- EOF tDest => (others => '0'), tId => (others => '0'), tUser => (others => '1')) |
|
SSI_CONFIG_INIT_C | AxiStreamConfigType | ssiAxiStreamConfig(16) | A default SSI config is useful to have |
Types
Name | Type | Description |
---|---|---|
SsiMasterType | ----------------------------------------------------------------------------------------------- SSI Records and AXI-Stream conversion functions ----------------------------------------------------------------------------------------------- | |
SsiSlaveType |
Functions
- ssiAxiStreamConfig ( dataBytes : positive;
tKeepMode : TKeepModeType := TKEEP_COMP_C;
tUserMode : TUserModeType := TUSER_FIRST_LAST_C;
tDestBits : natural range 0 to 8 := SSI_TDEST_BITS_C;
tUserBits : positive range 2 to 8 := SSI_TUSER_BITS_C;
tIdBits : natural range 0 to 8 := SSI_TID_BITS_C) return AxiStreamConfigType
Description
EOFE
Build an SSI configuration
- ssi2AxisMaster ( axisConfig : AxiStreamConfigType;
ssiMaster : SsiMasterType) return AxiStreamMasterType
- ssi2AxisSlave ( ssiSlave : SsiSlaveType) return AxiStreamSlaveType
- ssi2AxisCtrl ( ssiSlave : SsiSlaveType) return AxiStreamCtrlType
- axis2SsiMaster ( axisConfig : AxiStreamConfigType;
axisMaster : AxiStreamMasterType) return SsiMasterType
- axis2SsiSlave ( axisConfig : AxiStreamConfigType;
axisSlave : AxiStreamSlaveType := AXI_STREAM_SLAVE_INIT_C;
axisCtrl : AxiStreamCtrlType := AXI_STREAM_CTRL_UNUSED_C) return SsiSlaveType
- ssiMasterInit ( axisConfig : AxiStreamConfigType) return SsiMasterType
- ssiSlaveInit ( axisConfig : AxiStreamConfigType) return SsiSlaveType
- ssiGetUserEofe ( axisConfig : AxiStreamConfigType;
axisMaster : AxiStreamMasterType) return sl
Description
constant SSI_MASTER_INIT_C : SsiMasterType := axis2SsiMaster(SSI_CONFIG_INIT_C, AXI_STREAM_MASTER_INIT_C);
constant SSI_SLAVE_INIT_C : SsiSlaveType := axis2SsiSlave(AXI_STREAM_SLAVE_INIT_C, AXI_STREAM_CTRL_UNUSED_C);
Functions to interpret TUSER bits
- ssiSetUserEofe ( axisConfig : in AxiStreamConfigType;
axisMaster : inout AxiStreamMasterType;
eofe : in sl) return ()
- ssiGetUserSof ( axisConfig : AxiStreamConfigType;
axisMaster : AxiStreamMasterType) return sl
- ssiSetUserSof ( axisConfig : in AxiStreamConfigType;
axisMaster : inout AxiStreamMasterType;
sof : in sl) return ()
- ssiResetFlags ( axisMaster : inout AxiStreamMasterType) return ()