From e863acf1166118fe685cff7bae73a9d14e0513d8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 06:15:30 +0100 Subject: [PATCH] add assert on ControlBase.connect, stage should be None --- src/add/singlepipe.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 7d08ccff..d62c9395 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -1,11 +1,10 @@ -""" Pipeline and BufferedHandshake implementation, conforming to the same API. - For multi-input and multi-output variants, see multipipe. +""" Pipeline API. For multi-input and multi-output variants, see multipipe. Associated development bugs: * http://bugs.libre-riscv.org/show_bug.cgi?id=64 * http://bugs.libre-riscv.org/show_bug.cgi?id=57 - Important: see Stage API (iocontrol.py) in combination with below + Important: see Stage API (stageapi.py) in combination with below RecordBasedStage: ---------------- @@ -270,6 +269,7 @@ class ControlBase(StageHelper, Elaboratable): an elaborate() to m.d.comb """ assert len(pipechain) > 0, "pipechain must be non-zero length" + assert self.stage is None, "do not use connect with a stage" eqs = [] # collated list of assignment statements # connect inter-chain -- 2.30.2