Escaped identifier un-escaped along the way
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- tooling
Hướng nghiên cứu
Start by comparing the escaped port \input in 1_2_yosys.v with its unescaped form in 1_synth_lec.v, then trace where the LEC netlists are written in the synthesis/LEC scripts invoked around flow/scripts/cts.tcl. Reproduce with the linked ORFS fork and DESIGN_CONFIG=/work/designs/ihp-sg13g2/ctu-can-fd/config.mk, and use ctu_can_fd_top_no_kwds.unmapped.v as the passing control. Done means the escaped identifier survives through synthesis and LEC, and the flow completes with LEC enabled.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Subject
[Stage]: Other. Please describe below.
Describe the bug
Hi,
I am trying to port my design to ORFS and do simple PnR to "square".
The design is CAN FD IP in:
CTU CAN FD
I use GHDL synth to elaborate the design and write-out technology agnostic Verilog.
Then I feed this Verilog to ORFS.
I am using following fork:
ORFS fork
see the branch ctu-can-fd-in-ihp.
The issue is that my design contains escaped identifier on port since the original
VHDL identifier conflicted with Verilog keyword. ORFS somewhere along the road
looses the "escape" forcing to become "illegal" verilog.
In the input netlist from GHDL, I see port named "input" correctly escaped:
module shift_reg_byte_Brtl_Lctu_can_fd_rtl_4_9e69025921c60d5f6516f55a42e6f7c366a8877d
(input clk,
input rst_n,
input \input ,
...
However, ORFS (or OR, I don't know) then looses the escape and eventually crashes on
pre/post RSZ LEC. I see the loss of escape in "synth" stage. If I look at 1_2_yosys.v, the
escape is preserved, but the 1_synth_lec.v already drops the escape (search for module
starting with shift_reg_byte to see the port).
If I disable running LECs, the flow finishes, but the resulting netlist is illegal (no escape)
and errors when I try to compile it.
Renaming the port in original RTL helps and the flow runs OK with LEC enabled.
The design is located in: /flow/designs/ihp-sg13g2/ctu-can-fd/config.mk.
Expected Behavior
I expect the escaped identifiers to be preserved.
Environment
ORFS Docker built from commit d3043e6.
Srry, when I launch docker with "docker_shell" utility, the "tools" folder
does not contain OpenROAD within the Docker (mount ?). However, I think this
should be sufficient to reproduce. If not (or it is too much pain), please
let me know how I can give you more information about the environment.
To Reproduce
In the flow folder of the fork on the branch above do:
util/docker_shell -i openroad/flow-ubuntu26.04-builder:b12b34 DESIGN_CONFIG=/work/designs/ihp-sg13g2/ctu-can-fd/config.mk make
If you change the input netlist to "ctu_can_fd_top_no_kwds.unmapped.v", the whole flow passes.
Relevant log output
The before / after RSZ LEC fails:
WARNING STA-0101] object 'bondpad_70*' not found.
Elapsed time: 0:00.05[h:]min:sec. CPU time: user 0.05 sys 0.00 (99%). Peak memory: 21040KB.
Writing failure checkpoint /work/results/ihp-sg13g2/ctu_can_fd_top/base/4_1_cts-failed.odb
child process exited abnormally
while executing
"exec {*}$run_cmd --log $::env(LOG_DIR)/${step}_${kind}.log -- {*}$::env(KEPLER_FORMAL_EXE) --config $::env(OBJECTS_DIR)/${step}_${kind}_test.yml 2>@..."
(procedure "run_kepler_formal" line 9)
invoked from within
"run_kepler_formal $step lec"
(procedure "run_lec_test" line 4)
invoked from within
"run_lec_test 4_rsz 4_before_rsz_lec.v 4_after_rsz_lec.v"
(file "/OpenROAD-flow-scripts/flow/scripts/cts.tcl" line 57)
invoked from within
"source /OpenROAD-flow-scripts/flow/scripts/cts.tcl"
("uplevel" body line 1)
invoked from within
"uplevel #0 [list source $::env(STEP_TCL)] "
invoked from within
"if { [catch { uplevel #0 [list source $::env(STEP_TCL)] } msg opts] != 0 } {
if { [catch { write_failure_checkpoint } checkpoint_error] } {
puts..."
(file "/OpenROAD-flow-scripts/flow/scripts/run_step.tcl" line 26)
Elapsed time: 0:09.04[h:]min:sec. CPU time: user 24.41 sys 4.91 (324%). Peak memory: 491728KB.
make[1]: *** [Makefile:587: do-4_1_cts] Error 1
make: *** [Makefile:587: /work/results/ihp-sg13g2/ctu_can_fd_top/base/4_1_cts.odb] Error 2
+ rm -f /tmp/.docker.xauth.fXTsKXSdG7
Screenshots
No response
Additional Context
No response
- Ngôn ngữ chính
- Verilog
- Star
- 825
- Fork
- 561
- Merge trung bình
- 2 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 84
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của The-OpenROAD-Project/OpenROAD-flow-scripts
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4938 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
gf180: `-split_cuts {Metal3 0.128}` in the platform PDN config makes overlapping, off-grid Via2/Via3 cutsCó thể làm lại được @gadfort đã nhận 32 ngày trước và không có pull request nào đang mở. Đang mởpdn
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 71/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4754 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4739 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make SYNTH_HDL_FRONTEND=slang defaultCó thể làm lại được @jeffng-or đã nhận 73 ngày trước và không có pull request nào đang mở. Đang mởStale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4548 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 56/100
The-OpenROAD-Project/OpenROAD-flow-scripts#4940 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của The-OpenROAD-Project/OpenROAD-flow-scripts
Issue tương tự
-
XML grammar: only the closing --> of a comment gets the scope comment.block.xmlCó thể đã có người làm @alexeyfala đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
danipen/TextMateSharp#145 · 2 bình luận ·
-
accepted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
future-agi/future-agi#6368 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
omacom/omarchy#21787 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows 内置更新报“更新进程启动确认超时”:Explorer ShellExecute 冗余的 -WindowStyle Hidden + -EncodedCommand 触发卡巴斯基挂起Đang mởbug status/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
WhiteBr1ck/agy-powertools#397 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
leanprover/vscode-lean4#841 ·
Maintainer thường phản hồi trong vòng 2 ngày