Skip to content

Commit

Permalink
rtl: Flip up string flag on foldspec_src
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Povišer <[email protected]>
  • Loading branch information
povik committed Jan 22, 2024
1 parent c3f19e5 commit aa023da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fold/logic/rtl.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ def _convert_to_const(v):
raise NotImplementedError(type(v))


def _make_yconst_str(yc):
yc.flags = 1
return yc


class Module:
def __init__(self, ym, design):
self.ym = ym
Expand Down Expand Up @@ -175,7 +180,7 @@ def add_wire(self, name, width, **synth_attrs):
self.used_wires.add(name)
ywire = self.ym.addWire(_to_idstring(name), width)
ywire.attributes = {
ID_FOLDSPEC_SRC: encode_string(foldspec_src).ss.as_const(),
ID_FOLDSPEC_SRC: _make_yconst_str(encode_string(foldspec_src).ss.as_const()),
**{ys.IdString(f"\\{k}"): _convert_to_const(v).ss.as_const() \
for k, v in synth_attrs.items()}
}
Expand Down

0 comments on commit aa023da

Please sign in to comment.