From: whitequark Date: Wed, 3 Jul 2019 16:34:31 +0000 (+0000) Subject: hdl.dsl: fix src_loc_at for FSM state signal. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4a417fa8d00d8ece560d61d46a34e837fff7ee33;p=nmigen.git hdl.dsl: fix src_loc_at for FSM state signal. --- diff --git a/nmigen/hdl/dsl.py b/nmigen/hdl/dsl.py index 5c39482..5b82089 100644 --- a/nmigen/hdl/dsl.py +++ b/nmigen/hdl/dsl.py @@ -248,7 +248,7 @@ class Module(_ModuleBuilderRoot, Elaboratable): self._check_context("FSM", context=None) fsm_data = self._set_ctrl("FSM", { "name": name, - "signal": Signal(name="{}_state".format(name)), + "signal": Signal(name="{}_state".format(name), src_loc_at=2), "reset": reset, "domain": domain, "encoding": OrderedDict(),