base.signals module

class base.signals.Signal(name='', size=None, is_signed=0, is_reg=0, high_active=1)

Bases: object

Holds information about a signal of a circuit, mainly for input and output signals.

Parameters:
  • name (str, optional) – The Signal’s name as specified in the input design file. Default value is "".
  • size (int, optional) – The bit width of the Signal. Default value is None.
  • is_signed (int, optional) – Flag specifying whether the Signal is signed (1) or not (0). Default value is 0.
  • is_reg (int, optional) – Flag specifying whether the Signal is a register (1) or not (0). Default value is 0.
  • high_active (int, optional) – Flag specifying whether the Signal is active on high input (1) or low input (0). Default value is 1.
name
size
is_signed
is_reg
high_active