Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseSignalLike

Base class for all SignalLikes. Should never be instaniated.

Hierarchy

Index

Properties

type

type: string

width

width: number

Methods

!=

&

&&

+

++

-

<

<<

<<<

<=

==

>

>=

>>

>>>

?

^

and

andLogical

asSigned

asUnsigned

bit

  • Isolate a single bit from this signal

    Parameters

    • index: number

      the index to isolate

    Returns SliceT

concat

eq

gt

gte

Abstract isEqual

lt

lte

minus

neq

or

orLogical

plus

shiftLeft

shiftLeftA

shiftRight

shiftRightA

signExtend

  • signExtend(toWidth: number): ConcatT
  • Sign-extend this signal to a given bit width

    Parameters

    • toWidth: number

    Returns ConcatT

slice

  • slice(fromBit: number, toBit: number): SliceT
  • Create a slice from this signal (inclusive)

    Parameters

    • fromBit: number

      the starting bit

    • toBit: number

      the ending bit

    Returns SliceT

ternary

xor

zeroExtend

  • zeroExtend(toWidth: number): ConcatT
  • Zero-extend this signal to a given bit width

    Parameters

    • toWidth: number

    Returns ConcatT

|

||

Generated using TypeDoc