Closed vijayank88 closed 1 year ago
Gah... The worst script in the codebase
With OpenLane tag: 2022.11.30
the log as follows:
[STEP 27]
[INFO]: Writing Powered Verilog (logs: logs/signoff/27-write_powered_def.log, logs/signoff/27-write_powered_verilog.log)...
[ERROR]: during executing: "openroad -exit -no_init -python /openlane/scripts/odbpy/power_utils.py write_powered_def --output /openlane/designs/secure-memory-wrapper/runs/RUN_2022.11.30_22.19.27/tmp/signoff/26-user_project_wrapper.p.def --input-lef /openlane/designs/secure-memory-wrapper/runs/RUN_2022.11.30_22.19.27/tmp/merged.nom.lef --power-port vccd1 --ground-port vssd1 --powered-netlist /openlane/designs/secure-memory-wrapper/runs/RUN_2022.11.30_22.19.27/tmp/synthesis/pg_define.v /openlane/designs/secure-memory-wrapper/runs/RUN_2022.11.30_22.19.27/results/routing/user_project_wrapper.def |& tee /dev/null /openlane/designs/secure-memory-wrapper/runs/RUN_2022.11.30_22.19.27/logs/signoff/27-write_powered_def.log"
[ERROR]: Exit code: 1
[ERROR]: Last 10 lines:
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/openlane/scripts/odbpy/power_utils.py", line 222, in write_powered_def
assert power.name == reader.name
AttributeError: 'OdbReader' object has no attribute 'name'
child process exited abnormally
Hi everyone,
I get the same issue (the power_utils.py one). Reading the file 27-write_powered_verilog.log, I found this error :
openroad> read_verilog /home/mpotereau/DigitalFlowTest/gf_spi_test/openl ane/user_project_wrapper/runs/23_01_10_16_10/tmp/synthesis/pg_define.v
[ERROR STA-0164] /home/mpotereau/DigitalFlowTest/gf_spi_test/openlane/user_project_wrapper/runs/23_01_10_16_10/tmp/synthesis/pg_define.v line 561, syntax error, unexpected $undefined, expecting ';' or ','
I look a the line 561 of the pg_define.v file and found :
defparam spi_reg0.REG_ADDR = 32'sb00000000000000000000000000000000;
In my opinion, this is a faulty translation of the original line in my code :
spi_register #(8,3,0) spi_reg1 (
I rewrite my code as :
spi_register #(4'b1000,4'b0011,4'b0000) spi_reg1 (
and the step 27 is now successful.
I don't know what generate the pg_define.v file, but I think the issue is there and not in the power_utils.py part.
@vijayank88 Do you use parameter and do you pass them in decimal format ?
Description
This MPW
user_project_wrapper
design: https://github.com/The-OpenROAD-Project/caravel_user_project/blob/Procenne-Digital-Design/secure-memory/openlane/user_project_wrapper/config.tclPreviously its worked fine. Latest OpenLane throws error and failed to complete writing powered verilog stage.
Expected behavior
Complete the flow.
Environment
Reproduction Material
Its quite confusing to generate the test case. Please run this MPW CI design by following below steps:
Edit and save
openlane-tag
value to2022.11.02
MPW CI Logs: https://jenkins.openroad.tools/blue/organizations/jenkins/OpenLane-MPW-CI-Public%2Fproduction-small-2/detail/PR-97/6/pipeline/1293
Logs