Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
add registers for unused vals?
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Mar 15, 2024
1 parent e9b5383 commit a23f5f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions openhls/ir/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def parse_mlir_module(module_str):
value_float = float(str(value).split(":")[0])
csts[res_val] = value_float
else:
vals.add(res_val)
vals.update(set(args))

start_time = reg_start_time.findall(line)
Expand Down
4 changes: 2 additions & 2 deletions openhls/rtl/emit_verilog.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def make_pe_always(fsm, pe, op_datas: list[Op], vals, input_wires, ip_res_val_ma
not_latches = set()
for op in op_datas:
if DEBUG:
tree_conds.append(f"\n\t// {op.emit()} start")
tree_conds.append(f"\n\t// {op.emit()} start"[:100])
ip = getattr(pe, op.type.value, None)
args = op.args
start_time = op.attrs["start_time"]
Expand Down Expand Up @@ -103,7 +103,7 @@ def make_pe_always(fsm, pe, op_datas: list[Op], vals, input_wires, ip_res_val_ma
raise NotImplementedError(str(op))

if DEBUG:
tree_conds.append(f"\t// {op.emit()} end\n")
tree_conds.append(f"\t// {op.emit()} end\n"[:100])

return make_always_tree(tree_conds, not_latches)

Expand Down

0 comments on commit a23f5f5

Please sign in to comment.