piel.models.logic.electronic.digital

piel.models.logic.electronic.digital#

Functions#

bits_array_from_bits_amount(→ piel.types.BitsList)

Returns an array of bits (in bytes) of a given length.

Module Contents#

bits_array_from_bits_amount(bits_amount: int) piel.types.BitsList[source]#

Returns an array of bits (in bytes) of a given length.

Parameters:

bits_amount (int) – Amount of bits to generate.

Returns:

List of binary representations in bytes.

Return type:

BitsList