mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-05 19:36:55 +02:00
genrtlil records the case item as compare_src and the block as the case's own src, so the actions inside a case point at the statements that wrote them rather than at the selector. A $eq then stands for both sides of the comparison it performs - the switch expression and the case value - the $reduce_or over them for the case value, and the _CMP wire for the switch. A mux passes its fused locations on to the wire it drives. The gatemate fsm LUT counts go back to what they were before the source work: the finer mapping restores the earlier covering. Picks up the proc part of emil/twines-proc-srcloc-rebased:b2d57e5d4rtlil: add case_src to CaseRulec74bc43cfproc_mux, genrtlil: make use of case_src9bc771e05proc_mux: copy switch src to _CMP wire6182c7dd8proc_mux: copy mux src to Y port3d2e26815kernel: add SwitchRule signal_srccf3867bb1proc_mux: include switch expression location in $eq src