Main Content

SoC Bus Selector

Convert bus to control signals

  • Library:
  • SoC Blockset / Hardware Logic Connectivity

  • SoC Bus Selector block

Description

The SoC Bus Selector block converts a set of control signals from a bus. The block accepts a bus and outputs control signals.

You can configure this block to support multiple protocol interface types. Parameter and port configurations for this block vary based on your desired protocol interface type and mode of operation, as outlined in this table.

Protocol Interface TypeMode of OperationParameter ConfigurationEnabled Output Ports
Data streamRead stream data

Set Control protocol to Data stream and Control type to Valid.

valid
tlast
Write stream data

Set Control protocol to Data stream and Control type to Ready.

ready
Pixel streamRead video stream

Set Control protocol to Pixel stream and Control type to Valid.

hStart
hEnd
vStart
vEnd
valid
Write video stream

Set Control protocol to Pixel stream and Control type to Ready.

ready
Random access readRead data

Set Control protocol to Random access read and Control type to Valid.

rd_aready
rd_dvalid
Random access writeWrite data

Set Control protocol to Random access write and Control type to Ready.

wr_ready
wr_bvalid
wr_complete

Ports

Input

expand all

Input control bus, specified as a bus.

The data type of the input control bus depends on the values of the Control protocol and Control type parameters.

Parameter ConfigurationInput Data Type

Set Control protocol to Data stream and Control type to Valid.

StreamM2SBusObj

Set Control protocol to Data stream and Control type to Ready.

StreamS2MBusObj

Set Control protocol to Pixel stream and Control type to Valid.

pixelcontrol

Set Control protocol to Pixel stream and Control type to Ready.

StreamVideoS2MBusObj

Set Control protocol to Random access read and Control type to Valid.

ReadControlS2MBusObj

Set Control protocol to Random access write and Control type to Ready.

WriteControlS2MBusObj

Data Types: StreamM2SBusObj | StreamS2MBusObj | pixelcontrol | StreamVideoS2MBusObj | ReadControlS2MBusObj | WriteControlS2MBusObj

Output

expand all

Valid control signal, returned as a scalar. You can use this port for data stream and pixel stream protocols only.

Dependencies

To enable this port, set the Control protocol parameter to either Data stream or Pixel stream and the Control type parameter to Valid.

Data Types: Boolean

Indication of end of the data packet, returned as a Boolean scalar.

Dependencies

To enable this port, set the Control protocol parameter to Data stream and the Control type parameter to Valid.

Data Types: Boolean

Ready control signal, returned as a Boolean scalar. This port is available for Data stream and Pixel stream control protocols.

Dependencies

To enable this port, set the Control protocol parameter to either Data stream or Pixel stream and the Control type parameter to Ready.

Data Types: Boolean

First pixel in a horizontal line of a frame, returned as a Boolean scalar.

Dependencies

To enable this port, set the Control protocol parameter to Pixel stream and the Control type parameter to Valid.

Data Types: Boolean

Last pixel in a horizontal line of a frame, returned as a Boolean scalar.

Dependencies

To enable this port, set the Control protocol parameter to Pixel stream and the Control type parameter to Valid.

Data Types: Boolean

First pixel in the first (top) line of a frame, returned as a Boolean scalar.

Dependencies

To enable this port, set the Control protocol parameter to Pixel stream and the Control type parameter to Valid.

Data Types: Boolean

Last pixel in the last (bottom) line of a frame, returned as a Boolean scalar.

Dependencies

To enable this port, set the Control protocol parameter to Pixel stream and the Control type parameter to Valid.

Data Types: Boolean

Accept read requests, returned as a scalar. It indicates when to accept read requests.

Dependencies

To enable this port, set the Control protocol parameter to Random access read.

Data Types: Boolean

Read request valid, returned as a Boolean scalar. It is the control signal that indicates the data returned from the read request is valid.

Dependencies

To enable this port, set the Control protocol parameter to Random access read.

Data Types: Boolean

Write ready signal, returned as a Boolean scalar. It corresponds to the backpressure from the slave IP core or external memory. When this value is 1 (high), it indicates that data can be sent. When this value is 0 (low), it indicates that the hardware logic must stop sending data within one clock cycle.

Dependencies

To enable this port, set the Control protocol parameter to Random access write.

Data Types: Boolean

Write valid signal, returned as a Boolean scalar. It is the response signal from the slave IP core that you can use for diagnosis purposes. This value becomes 1 (high) after the AXI4 interconnect accepts each burst transaction.

Dependencies

To enable this port, set the Control protocol parameter to Random access write.

Data Types: Boolean

Write transaction complete, specified as a Boolean scalar. It is the control signal that when remains high for one clock cycle indicates that the write transaction has completed. This signal asserts at the last wr_bvalid of the burst.

Dependencies

To enable this port, set the Control protocol parameter to Random access write.

Data Types: Boolean

Parameters

expand all

Specify the protocol interface as one of these values:

  • Data stream — Use this protocol if you require AXI4 data stream.

  • Pixel stream — Use this protocol if you require AXI4 video stream.

  • Random access read — Use this protocol if you require AXI4 read.

  • Random access write — Use this protocol if you require AXI4 write.

The output ports of the block vary based on the type of Control protocol and Control type that you select. For more details, see Description.

Specify the type of control.

The output ports of the block vary based on the type of Control protocol and Control type that you select. For more details, see Description.

Extended Capabilities

Fixed-Point Conversion
Design and simulate fixed-point systems using Fixed-Point Designer™.

Introduced in R2019a