hdl._ir: fix SwitchValue LHS lowering.
This commit is contained in:
parent
572d546e07
commit
9bd536bbf9
2 changed files with 36 additions and 1 deletions
|
|
@ -1076,7 +1076,7 @@ class NetlistEmitter:
|
|||
conds.append(_nir.Net.from_const(1))
|
||||
elems.append(elem)
|
||||
conds = _nir.Value(conds)
|
||||
cell = _nir.PriorityMatch(module_idx, en=_nir.Net.from_const(1),
|
||||
cell = _nir.PriorityMatch(module_idx, en=cond,
|
||||
inputs=conds, src_loc=lhs.src_loc)
|
||||
conds = self.netlist.add_value_cell(len(conds), cell)
|
||||
for subcond, val in zip(conds, elems):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue