Bit Slice
R2026bReturn field of consecutive bits from input signal
Libraries:
HDL Coder /
Logic and Bit Operations
Description
The Bit Slice block returns a field of consecutive bits from the input
signal. Specify the lower and upper boundaries of the bit field by using zero-based indices in
the LSB Position and MSB Position parameters. For an
input word size WS, LSB Position and MSB
Position must satisfy these constraints:
WS > MSB Position >= LSB Position >= 0
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"hdlsllib/Logic and Bit Operations/Bit Slice"
Example: add_block("hdlsllib/Logic and Bit Operations/Bit Slice","myModel/myBlock",MakeNameUnique="on")
