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

Platform SG13G2 misses antenna diode definition in the LEF #1981

Open
hpretl opened this issue Apr 30, 2024 · 12 comments
Open

Platform SG13G2 misses antenna diode definition in the LEF #1981

hpretl opened this issue Apr 30, 2024 · 12 comments
Assignees
Labels
ant Antenna Checker grt Global Routing

Comments

@hpretl
Copy link
Contributor

hpretl commented Apr 30, 2024

Description

In the ORFS the repair_antennas command is used for antenna repair. This requires an ANTENNACELL to be declared in the LEF, see https://openroad.readthedocs.io/en/latest/main/src/grt/README.html#repair-antennas.

In the moment, this seems missing.

Suggested Solution

Add ANTENNACELL to sg13g2_stdcell.lef (at least I think this would be the right place, but I am not sure about this). @KrzysztofHerman please take a look into this.

It would also be good if antenna diodes could be placed at every input, but since only p-type antenna diodes are available in the standard cells that could lead to trouble, if a block is powered down and ties the inputs to VSS via the antenna diodes.

Additional Context

No response

@maliberty
Copy link
Member

The lack of a cell should be filed against https://github.com/IHP-GmbH/IHP-Open-PDK. If such a cell exists then this request could be fufilled.

@hpretl
Copy link
Contributor Author

hpretl commented Apr 30, 2024

Created an issue: IHP-GmbH/IHP-Open-PDK#92

I propose to keep both issues open, one to get the antenna diode in the LEF, and then check that ORFS is actually using it.

@maliberty
Copy link
Member

That cell exists in our copy but lacks ANTENNACELL. I'll see if we can pull in the update.

@maliberty
Copy link
Member

#1987

@KrzysztofHerman
Copy link
Contributor

@hpretl @maliberty @rovinski since there was an update on different views used for digital design there is also the ANTENNACELL present there. I am currently testing it and it still throws antenna issues for large designs (ibex, aes, riscv32i). The updated LEF is here https://github.com/KrzysztofHerman/OpenROAD-flow-scripts/blob/April24_Update/flow/platforms/ihp-sg13g2/lef/sg13g2_stdcell.lef
The name of the cell is sg13g2_antennanp

@maliberty
Copy link
Member

I've merged #1987 so the antennacell is there. @hpretl do you want to make any necessary ORFS changes and see if it resolves your concern?

@hpretl
Copy link
Contributor Author

hpretl commented May 2, 2024

@maliberty I wouldn't really know what to do except run the flow and see what happens, but @KrzysztofHerman already tried that (see above). The question is why there are still antenna fails left.

@maliberty
Copy link
Member

What does "throws antenna issues" mean? Is it that the tool fails or just that not all issues were fixed? We do have some improvements in antenna fixing in progress.

@KrzysztofHerman
Copy link
Contributor

There are still antenna violations in the 5_1_grt.log, something like this: Required ratio: 200.00 (Cumulative area) (VIOLATED). I have also verified the final netlist 6_final.v and there are no cells named sg13g2_antennanp.

@maliberty
Copy link
Member

@eder-matheus I ran ihp-sg13g2/riscv32i and I see

Repair antennas...
[INFO GRT-0012] Found 0 antenna violations.

but the subsequent check shows violations.

@maliberty maliberty added ant Antenna Checker grt Global Routing labels May 2, 2024
@eder-matheus
Copy link
Collaborator

@maliberty I've found the issue. The API used by repair_antennas to get the violations from antenna_checker is broken. It only computes the PAR values, not the CAR. If you look at the logs, there are only CAR violations. I'll try to fix it. Hopefully, it will be a small update. But this is something to remember in the new antenna checker (@luis201420 ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ant Antenna Checker grt Global Routing
Projects
None yet
Development

No branches or pull requests

5 participants