Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing flow on step "Check Antenna Properties of Pins in The Generated Design LEF view" #440

Open
hpretl opened this issue Mar 28, 2024 · 3 comments
Labels
blocked This issue or PR is pending an issue with an underlying utility bug Something isn't working

Comments

@hpretl
Copy link
Collaborator

hpretl commented Mar 28, 2024

Description

Running a simple Verilog example using OL2 v2.0.0b17.

Expected Behavior

No fail.

Environment report

foss/designs/example/dig > openlane.env_info || python3 ./openlane/env_info.py
Failed to get Docker info: [Errno 13] Permission denied: 'docker'
Failed to get Docker info: [Errno 2] No such file or directory: 'nix-shell'
kernel: Linux
kernel_version: 6.6.16-linuxkit
supported: True
distro: ubuntu
distro_version: 22.04
python_version: 3.10.12
python_path:
  - /usr/local/bin
  - /usr/lib/python310.zip
  - /usr/lib/python3.10
  - /usr/lib/python3.10/lib-dynload
  - /usr/local/lib/python3.10/dist-packages
  - /usr/lib/python3/dist-packages
  - /usr/lib/python3.10/dist-packages
  - /foss/tools/ngspyce/154a272/local/lib/python3.10/dist-packages
  - /foss/tools/pyopus/0.11/local/lib/python3.10/dist-packages
  - /foss/tools/yosys/share/yosys/python3
  - /foss/tools/klayout/v0.28.17/pymod
tkinter: True
container_info: None
nix_info: None

Reproduction material

/foss/designs/example/dig > cat counter.json 
{
    "DESIGN_NAME": "counter",
    "VERILOG_FILES": "dir::counter.v",
    "CLOCK_PORT": "clk_i",
    "CLOCK_PERIOD": 20
}

Relevant log output

[INFO ODB-0134] Finished DEF file: /tmp/tmpkj__5trb                                                                                                    
Traceback (most recent call last):                                                                                                                     
File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/check_antenna_properties.py", line 116, in <module>                               
check_antenna_properties()                                                                                                                             
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__                                                                            
return self.main(*args, **kwargs)                                                                                                                      
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main                                                                                
rv = self.invoke(ctx)                                                                                                                                  
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke                                                                              
return ctx.invoke(self.callback, **ctx.params)                                                                                                         
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke                                                                               
return __callback(*args, **kwargs)                                                                                                                     
File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/reader.py", line 205, in wrapper                                                  
function(**kwargs)                                                                                                                                     
File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/check_antenna_properties.py", line 109, in check_antenna_properties               
report = check_cells(cells)                                                                                                                            
File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/check_antenna_properties.py", line 34, in check_cells                             
has_diff_area = mterm.hasDiffArea()                                                                                                                    
AttributeError: 'dbMTerm' object has no attribute 'hasDiffArea'. Did you mean: 'getDiffArea'?                                                          
[14:45:05] ERROR      File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke                                             step.py:1170
                        return __callback(*args, **kwargs)                                                                                             
                      File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/reader.py", line 205, in wrapper                            
                        function(**kwargs)                                                                                                             
                      File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/check_antenna_properties.py", line 109, in                  
                    check_antenna_properties                                                                                                           
                        report = check_cells(cells)                                                                                                    
                      File "/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/check_antenna_properties.py", line 34, in                   
                    check_cells                                                                                                                        
                        has_diff_area = mterm.hasDiffArea()                                                                                            
                    AttributeError: 'dbMTerm' object has no attribute 'hasDiffArea'. Did you mean: 'getDiffArea'?                                      
                                                                                                                                                       
[14:45:05] ERROR    Log file: 'runs/RUN_2024-03-28_14-44-32/52-odb-checkdesignantennaproperties/odb-checkdesignantennaproperties.log'      step.py:1171
[14:45:05] ERROR    The following error was encountered while running the flow: Check Antenna Properties of Pins in The Generated       __main__.py:153
                    Design LEF view: subprocess (1, ['openroad', '-exit', '-no_splash', '-metrics',                                                    
                    '/foss/designs/example/dig/runs/RUN_2024-03-28_14-44-32/52-odb-checkdesignantennaproperties/or_metrics_out.json',                  
                    '-python', '/usr/local/lib/python3.10/dist-packages/openlane/scripts/odbpy/check_antenna_properties.py',                           
                    '--input-lef', '/foss/pdks/sky130A/libs.ref/sky130_fd_sc_hd/techlef/sky130_fd_sc_hd__nom.tlef', '--input-lef',                     
                    '/foss/pdks/sky130A/libs.ref/sky130_fd_sc_hd/lef/sky130_fd_sc_hd.lef', '--input-lef',                                              
                    '/foss/pdks/sky130A/libs.ref/sky130_fd_sc_hd/lef/sky130_ef_sc_hd.lef', '--design-lef',                                             
                    '/foss/designs/example/dig/runs/RUN_2024-03-28_14-44-32/51-magic-writelef/counter.lef', '--cell-name', 'counter',                  
                    '--report-file',                                                                                                                   
                    '/foss/designs/example/dig/runs/RUN_2024-03-28_14-44-32/52-odb-checkdesignantennaproperties/report.yaml',                          
                    '/foss/designs/example/dig/runs/RUN_2024-03-28_14-44-32/45-openroad-fillinsertion/counter.odb']) failed                            
[14:45:05] ERROR    OpenLane will now quit.                                                                                             __main__.py:154
Classic - Stage 57 - Check Antenna Properties of Pins in The Generated Design LEF view ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━ 56/71 0:00:3
@donn donn added bug Something isn't working blocked This issue or PR is pending an issue with an underlying utility labels Mar 28, 2024
@donn
Copy link
Member

donn commented Mar 28, 2024

As mentioned on Slack, this is pending #405, as we currently patch this functionality into OpenROAD.

We apologize for the inconvenience.

@hpretl
Copy link
Collaborator Author

hpretl commented Mar 28, 2024

Is there a way via config variable to disable the failing step until this is merged into OR?

@donn
Copy link
Member

donn commented Apr 1, 2024

@hpretl --skip Odb.CheckDesignAntennaProperties --skip Odb.CheckMacroAntennaProperties

You could just sed the steps out in openlane/flows/classic.py or pull our OpenROAD patch, both are viable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked This issue or PR is pending an issue with an underlying utility bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants