olofk / edalize

An abstraction library for interfacing EDA tools
BSD 2-Clause "Simplified" License
622 stars 183 forks source link

EDAM file: toplevel list of string #343

Open qarlosalberto opened 1 year ago

qarlosalberto commented 1 year ago

I see in the EDAM documentation:

image

Is it possible to use it in all the tools? For example for GHDL? I'm having errors with this EDAM file:

{
  "files": [
    {
      "name": "/home/carlos/repo/colibri2/tests/project_manager/tools/edalize/helpers/ghdl/half_adder_tb.vhd",
      "file_type": "vhdlSource-2008",
      "is_include_file": false,
      "include_path": "",
      "logical_name": ""
    },
    {
      "name": "/home/carlos/repo/colibri2/tests/project_manager/tools/edalize/helpers/ghdl/half_adder.vhd",
      "file_type": "vhdlSource-2008",
      "is_include_file": false,
      "include_path": "",
      "logical_name": ""
    }
  ],
  "hooks": {
    "pre_build": [],
    "post_build": [],
    "pre_run": [],
    "post_run": []
  },
  "name": "ghdl-prj",
  "tool_options": {
    "ghdl": {
      "analyze_options": [],
      "run_options": []
    }
  },
  "toplevel": ["half_adder_process_tb", "other_tb"]
}
Error: 'list' object has no attribute 'split'
olofk commented 1 year ago

It is supposed to work with all tools, but you're right, it's currently broken in the ghdl backend