siliconcompiler: siliconcompiler._common.SiliconCompilerError: These final steps could not be reached: ['export']

Hi, I am trying to run example demo heartbeat. I observed the following results.

sc -target asic_demo -remote

and 

import siliconcompiler
chip = siliconcompiler.Chip('heartbeat')
chip.load_target('freepdk45_demo')
chip.input('/content/siliconcompiler/examples/heartbeat/heartbeat.v')
chip.clock('clk', period=10)
chip.set('option','remote', True)
chip.run()

Above code succeeds

But

!python3 /content/siliconcompiler/examples/heartbeat/heartbeat.py 

Fail with below logs

| INFO    | /content/siliconcompiler/examples/heartbeat/heartbeat.v inferred as rtl/verilog
| INFO    | /content/siliconcompiler/examples/heartbeat/heartbeat.sdc inferred as constraint/sdc
| WARNING | Environment variable $DISPLAY or $WAYLAND_DISPLAY not set
| WARNING | Setting ['option', 'nodisplay'] to True
| INFO    | job0 | --        | - | Setting up node import0 with surelog/parse
| INFO    | job0 | --        | - | Setting up node syn0 with yosys/syn_asic
| INFO    | job0 | --        | - | Setting up node floorplan0 with openroad/floorplan
| INFO    | job0 | --        | - | Setting up node place0 with openroad/place
| INFO    | job0 | --        | - | Setting up node cts0 with openroad/cts
| INFO    | job0 | --        | - | Setting up node route0 with openroad/route
| INFO    | job0 | --        | - | Setting up node dfm0 with openroad/dfm
| INFO    | job0 | --        | - | Setting up node export0 with klayout/export
| INFO    | job0 | --        | - | Setting up node export1 with openroad/export
| INFO    | job0 | --        | - | Checking manifest before running.
| INFO    | job0 | import    | 0 | Tool 'surelog' found with version '1.75' in directory '/usr/local/lib/python3.10/dist-packages/siliconcompiler/tools/surelog/bin'
| INFO    | job0 | import    | 0 | Running in /content/build/heartbeat/job0/import/0
| INFO    | job0 | import    | 0 | surelog -nocache +libext+.sv+.v -parse -nouhdm /content/siliconcompiler/examples/heartbeat/heartbeat.v -top heartbeat
| INFO    | job0 | import    | 0 | [INF:CM0023] Creating log file "/content/build/heartbeat/job0/import/0/slpp_all/surelog.log".
| INFO    | job0 | import    | 0 | [WRN:PA0205] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: No timescale set for "heartbeat".
| INFO    | job0 | import    | 0 | [INF:CP0300] Compilation...
| INFO    | job0 | import    | 0 | [INF:CP0303] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: Compile module "work@heartbeat".
| INFO    | job0 | import    | 0 | [INF:CP0302] Compile class "work@mailbox".
| INFO    | job0 | import    | 0 | [INF:CP0302] Compile class "work@process".
| INFO    | job0 | import    | 0 | [INF:CP0302] Compile class "work@semaphore".
| INFO    | job0 | import    | 0 | [INF:EL0526] Design Elaboration...
| INFO    | job0 | import    | 0 | [NTE:EL0503] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: Top level module "work@heartbeat".
| INFO    | job0 | import    | 0 | [NTE:EL0508] Nb Top level modules: 1.
| INFO    | job0 | import    | 0 | [NTE:EL0509] Max instance depth: 1.
| INFO    | job0 | import    | 0 | [NTE:EL0510] Nb instances: 1.
| INFO    | job0 | import    | 0 | [NTE:EL0511] Nb leaf instances: 0.
| INFO    | job0 | import    | 0 | [INF:UH0706] Creating UHDM Model...
| INFO    | job0 | import    | 0 | [  FATAL] : 0
| INFO    | job0 | import    | 0 | [ SYNTAX] : 0
| INFO    | job0 | import    | 0 | [  ERROR] : 0
| INFO    | job0 | import    | 0 | [WARNING] : 1
| INFO    | job0 | import    | 0 | [   NOTE] : 5
| WARNING | job0 | import    | 0 |  2: [WRN:PA0205] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: No timescale set for "heartbeat".
| INFO    | job0 | import    | 0 | Finished task in 0.99s
| ERROR   | job0 | syn       | 0 | Cannot resolve path ../third_party/pdks/virtual/freepdk45/libs/nangate45/r1p0/lib/NangateOpenCellLibrary_typical.lib in required file keypath ['library', 'nangate45', 'output', 'typical', 'nldm'].
| ERROR   | job0 | syn       | 0 | Cannot resolve path ../third_party/pdks/virtual/freepdk45/libs/nangate45/r1p0/techmap/yosys/cells_adders.v in required file keypath ['library', 'nangate45', 'option', 'file', 'yosys_addermap'].
| ERROR   | job0 | syn       | 0 | Fatal error in check_manifest()! See previous errors.
| ERROR   | job0 | syn       | 0 | Halting step 'syn' index '0' due to errors.
Traceback (most recent call last):
  File "/content/siliconcompiler/examples/heartbeat/heartbeat.py", line 17, in <module>
    main()
  File "/content/siliconcompiler/examples/heartbeat/heartbeat.py", line 11, in main
    chip.run()                                # run compilation
  File "/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py", line 3999, in run
    self._local_process(flow, status)
  File "/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py", line 3933, in _local_process
    self._check_nodes_status(flow, status)
  File "/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py", line 3890, in _check_nodes_status
    self.error(f'These final steps could not be reached: {list(unreachable_steps)}',
  File "/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py", line 4803, in error
    raise SiliconCompilerError(msg) from None
siliconcompiler._common.SiliconCompilerError: These final steps could not be reached: ['export']

I can see that PDKs are not resolved. Please help me in this matter. Thank you in advance

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (7 by maintainers)

Most upvoted comments

You need to install the required packages prior to running the program. Also, I would recommend using ChatGPT for immediate resolution for error messages. It will be a slow and painful learning curve if your path to resolving issues is posting issues on the developer’s repo. Thank me later

On Thu, Oct 26, 2023 at 12:16 AM Vijaykumar @.***> wrote:

Hi, I am trying to run example demo heartbeat. I observed the following results.

sc -target asic_demo -remote

and

import siliconcompiler chip = siliconcompiler.Chip(‘heartbeat’) chip.load_target(‘freepdk45_demo’) chip.input(‘/content/siliconcompiler/examples/heartbeat/heartbeat.v’) chip.clock(‘clk’, period=10) chip.set(‘option’,‘remote’, True) chip.run()

Above code succeeds

But

!python3 /content/siliconcompiler/examples/heartbeat/heartbeat.py

Fail with below logs

| INFO | /content/siliconcompiler/examples/heartbeat/heartbeat.v inferred as rtl/verilog | INFO | /content/siliconcompiler/examples/heartbeat/heartbeat.sdc inferred as constraint/sdc | WARNING | Environment variable $DISPLAY or $WAYLAND_DISPLAY not set | WARNING | Setting [‘option’, ‘nodisplay’] to True | INFO | job0 | – | - | Setting up node import0 with surelog/parse | INFO | job0 | – | - | Setting up node syn0 with yosys/syn_asic | INFO | job0 | – | - | Setting up node floorplan0 with openroad/floorplan | INFO | job0 | – | - | Setting up node place0 with openroad/place | INFO | job0 | – | - | Setting up node cts0 with openroad/cts | INFO | job0 | – | - | Setting up node route0 with openroad/route | INFO | job0 | – | - | Setting up node dfm0 with openroad/dfm | INFO | job0 | – | - | Setting up node export0 with klayout/export | INFO | job0 | – | - | Setting up node export1 with openroad/export | INFO | job0 | – | - | Checking manifest before running. | INFO | job0 | import | 0 | Tool ‘surelog’ found with version ‘1.75’ in directory ‘/usr/local/lib/python3.10/dist-packages/siliconcompiler/tools/surelog/bin’ | INFO | job0 | import | 0 | Running in /content/build/heartbeat/job0/import/0 | INFO | job0 | import | 0 | surelog -nocache +libext+.sv+.v -parse -nouhdm /content/siliconcompiler/examples/heartbeat/heartbeat.v -top heartbeat | INFO | job0 | import | 0 | [INF:CM0023] Creating log file “/content/build/heartbeat/job0/import/0/slpp_all/surelog.log”. | INFO | job0 | import | 0 | [WRN:PA0205] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: No timescale set for “heartbeat”. | INFO | job0 | import | 0 | [INF:CP0300] Compilation… | INFO | job0 | import | 0 | [INF:CP0303] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: Compile module @.". | INFO | job0 | import | 0 | [INF:CP0302] Compile class @.“. | INFO | job0 | import | 0 | [INF:CP0302] Compile class @.". | INFO | job0 | import | 0 | [INF:CP0302] Compile class @.”. | INFO | job0 | import | 0 | [INF:EL0526] Design Elaboration… | INFO | job0 | import | 0 | [NTE:EL0503] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: Top level module @.***". | INFO | job0 | import | 0 | [NTE:EL0508] Nb Top level modules: 1. | INFO | job0 | import | 0 | [NTE:EL0509] Max instance depth: 1. | INFO | job0 | import | 0 | [NTE:EL0510] Nb instances: 1. | INFO | job0 | import | 0 | [NTE:EL0511] Nb leaf instances: 0. | INFO | job0 | import | 0 | [INF:UH0706] Creating UHDM Model… | INFO | job0 | import | 0 | [ FATAL] : 0 | INFO | job0 | import | 0 | [ SYNTAX] : 0 | INFO | job0 | import | 0 | [ ERROR] : 0 | INFO | job0 | import | 0 | [WARNING] : 1 | INFO | job0 | import | 0 | [ NOTE] : 5 | WARNING | job0 | import | 0 | 2: [WRN:PA0205] /content/siliconcompiler/examples/heartbeat/heartbeat.v:1:1: No timescale set for “heartbeat”. | INFO | job0 | import | 0 | Finished task in 0.99s | ERROR | job0 | syn | 0 | Cannot resolve path …/third_party/pdks/virtual/freepdk45/libs/nangate45/r1p0/lib/NangateOpenCellLibrary_typical.lib in required file keypath [‘library’, ‘nangate45’, ‘output’, ‘typical’, ‘nldm’]. | ERROR | job0 | syn | 0 | Cannot resolve path …/third_party/pdks/virtual/freepdk45/libs/nangate45/r1p0/techmap/yosys/cells_adders.v in required file keypath [‘library’, ‘nangate45’, ‘option’, ‘file’, ‘yosys_addermap’]. | ERROR | job0 | syn | 0 | Fatal error in check_manifest()! See previous errors. | ERROR | job0 | syn | 0 | Halting step ‘syn’ index ‘0’ due to errors. Traceback (most recent call last): File “/content/siliconcompiler/examples/heartbeat/heartbeat.py”, line 17, in <module> main() File “/content/siliconcompiler/examples/heartbeat/heartbeat.py”, line 11, in main chip.run() # run compilation File “/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py”, line 3999, in run self._local_process(flow, status) File “/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py”, line 3933, in _local_process self._check_nodes_status(flow, status) File “/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py”, line 3890, in _check_nodes_status self.error(f’These final steps could not be reached: {list(unreachable_steps)}', File “/usr/local/lib/python3.10/dist-packages/siliconcompiler/core.py”, line 4803, in error raise SiliconCompilerError(msg) from None siliconcompiler._common.SiliconCompilerError: These final steps could not be reached: [‘export’]

I can see that PDKs are not resolved. Please help me in this matter. Thank you in advance

— Reply to this email directly, view it on GitHub https://github.com/siliconcompiler/siliconcompiler/issues/2059, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKP74R2BYASL3GU5AO6DA33YBIE5NAVCNFSM6AAAAAA6QTWBLWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE3DEOBWHA2DCNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>