"So I expect if I do..." <- > <@mcc111:matrix.org> So I expect if I do > > ``` > automata = Signal(2) > m.d.comb += automata.eq(1) > ``` > > And *touch it nowhere else*, I assume that in the final design, the compiler (be it yosys or some propreitary thing) will realize that this signal is a constant and "optimize it out" completely, it will be the same as if I'd said Const instead of Signal. > > What if I do this? > > ``` > automata = Signal(2, reset=1) > ``` > > Can I assume this will similarly get optimized into a Const(1), if I never assign to it in Comb or Sync? yeah, both will be const-folded into nothingness