Flow Control Library

Purpose

The flow-control library contains all casper_flow_control HDL modules wrapped for Simulink. These blocks provide combinatorial entities to redirect standard logic-vectors.

Bus Create

Concatenates many input bus to create a unified output bus.

Ports

Signal

Type

Size

Description

din_0…

std_logic_vector

any

The input vectors

dout

std_logic_vector

any

The output vector

Parameters

Generic

Type

Value

Description

Input Bit Widths

Comma-delimited Integers

4,1,2,1

The bit-width of each input vector

Bus Expand

Breaks the input bus out into many smaller, constituent output buses.

Ports

Signal

Type

Size

Description

din

std_logic_vector

any

The input vector

dout_0…

std_logic_vector

any

The output vectors

Parameters

Generic

Type

Value

Description

Division Bit Widths

Comma-delimited Integers

1,2,3,2

The bit-width of output vectors

Radix Positions

Comma-delimited Integers

0,0,1,0

The fixed-point radix bit-position of the output vectors

Output Division Types

Comma-delimited Integers {0,1,2}

2,1,0,0

The cast-type of each output vector: (ufix=0, fix=1, bool=2)

Munge

Reorders equal-slices of the input bus.

Ports

Signal

Type

Size

Description

din

std_logic_vector

any

The input vector

dout

std_logic_vector

any

The output vector

Parameters

Generic

Type

Value

Description

Divisions

Integer

4

The number of equally-sized divisions of the input vector

Division Bit Width

Integer

2

The size of the divisions

Division Order

Comma-delimited Integers

3,0,2,1

The order of division-indices that determines the output vector