Skip to content

Commit d0ec0f8

Browse files
committed
Use name instead of cppname
1 parent 290f2c8 commit d0ec0f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hls4ml/backends/vivado/passes/fifo_depth_optimization.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def set_big_fifos(vars_to_profile, profiling_fifo_depth):
2020

2121

2222
def get_vcd_data(model):
23+
model.write()
2324
model.build(reset=False, csim=True, synth=True, cosim=True, validation=False, export=False, vsynth=False,
2425
fifo_opt=True)
2526

@@ -38,7 +39,7 @@ def generate_max_depth_file(model, maxs):
3839

3940
def set_fifo_depth(model, maxs):
4041
for k, v in model.output_vars.items():
41-
filtered_max = [x['max'] for x in maxs if v.cppname in x['name']]
42+
filtered_max = [x['max'] for x in maxs if v.name in x['name']]
4243
if len(filtered_max) == 0:
4344
continue
4445
if len(filtered_max) > 1:

0 commit comments

Comments
 (0)