Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "block-statements"

Contains expressions which can be used in synchronous logic

Index

Functions

Const Case

Const CombinationalSwitchAssignment

  • Combinational assignment to Port to, where based on the value of conditionalSignal, a case is selected as the output

    Parameters

    • to: Port

      The Port to assign to

    • conditionalSignal: SignalLike

      The SignalLike whose value will decide the output

    • cases: [ConstantT | number, SignalLikeOrValue][]

      An array of pairs (array with two elements), where the first element is the comparrison value, and the output is the value

    • Default value defaultCase: SignalLikeOrValue = 1

      A value to take on if no cases are used

    Returns CombinationalSwitchAssignmentStatement

Const Default

Const If

Const SIf

Const Switch

Generated using TypeDoc