get method

Logic get(
  1. Logic identifier, [
  2. int stageAdjustment = 0
])

Returns a staged version of identifier at the current stage, adjusted by the amount of stageAdjustment.

Typically, your pipeline will consist of a lot of p.get(x) type calls, but if you want to combinationally access a value of a signal from another stage, you can access it relatively using stageAdjustment. For example, p.get(x, -1) will access the value of x one stage prior.

Implementation

Logic get(Logic identifier, [int stageAdjustment = 0]) =>
    _ssa(_pipeline.get(identifier, stage + stageAdjustment));