Skip to content

AssertionError with set_top <name> variable missing #1417

@ixiotidi

Description

@ixiotidi

Prerequisites

Please make sure to check off these prerequisites before submitting a bug report.

  • Test that the bug appears on the current version of the dev-branch. Make sure to include the commit hash of the commit you checked out.
  • Check that the issue hasn't already been reported, by checking the currently open issues.
  • If there are steps to reproduce the problem, make sure to write them down below.
  • If relevant, please include the ONNX files, which were created directly before and/or after the bug.

Quick summary

When running build.build_dataflow_cfg('model.onnx',cfg), I'm getting an error at the step_hw_ipgen which indicates that the name of the project hasn't been set

Details

I'm getting the following error:

AssertionError: IPGen failed: /tmp/finn_builds/code_gen_ipgen__qvp1hitw/project_/sol1/impl/ip not found. Check log under /tmp/finn_builds/code_gen_ipgen__qvp1hitw

/workspace/finn/src/finn/custom_op/fpgadataflow/hlsbackend.py(186)ipgen_singlenode_code()
-> assert os.path.isdir(ip_path), "IPGen failed: %s not found. Check log under %s" % (

with the following configuration

cfg = build.DataflowBuildConfig(
steps=build_steps,
board="fpga",
output_dir='output_%s_%s' % ("tfc_w1a1","fpga"),
synth_clk_period_ns=10.0,
fpga_part="xczu3eg-sbva484-1-e",
shell_flow_type=build_cfg.ShellFlowType.VIVADO_ZYNQ,
stitched_ip_gen_dcp=False,
generate_outputs=[
build_cfg.DataflowOutputType.STITCHED_IP,
],
# verify_steps=[
# build_cfg.VerificationStepType.TIDY_UP_PYTHON,
# build_cfg.VerificationStepType.STREAMLINED_PYTHON,
# build_cfg.VerificationStepType.FOLDED_HLS_CPPSIM,
# build_cfg.VerificationStepType.STITCHED_IP_RTLSIM,
# ],
save_intermediate_models=True,
)

Steps to Reproduce

Add what needs to be done to reproduce the bug. Add code examples where useful
and make sure to include the resulting ONNX files, and the commit hash you are working on.

  1. Clone the FINN repository
  2. Checkout the dev branch, with commit hash: [...]
  3. Start the docker container with the command: [...]
  4. Run transformation on ONNX file model.onnx (from the example) or run the dataflow builder with the following settings:

Expected behavior

I would have expected that this would work for the example model

Actual behavior

The project name isn't set and hence the ipgen step crashes

Optional

Possible fix

If you already know where the issue stems from, or you have a hint please let us know.

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions