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

Issue reading LEF file #185

Open
IshraqAtUCF opened this issue Jun 28, 2024 · 13 comments
Open

Issue reading LEF file #185

IshraqAtUCF opened this issue Jun 28, 2024 · 13 comments

Comments

@IshraqAtUCF
Copy link

Hi,

I was trying to read the NanGate45 lef file by modifying the params.json file. I unfortunately am getting the following error.
image

This is my change for the params.json file

"lef_input" : { "description" : "input LEF file", "default" : "~/DREAMPlace/input_lefdef/NangateOpenCellLibrary.macro.mod.lef", "required" : "required for LEF/DEF" },

@limbo018
Copy link
Owner

It complains about not able to open the path. Can you try full path for ~/DREAMPlace/input_lefdef/NangateOpenCellLibrary.macro.mod.lef?

@IshraqAtUCF
Copy link
Author

I tried removing the tilde ~ and that gives me a segmentation error.
image

Strangely if I change this to a different .lef file (fakeram45_256x16.lef) and give ariane136_fp_placed_macros.def as the def input, it succesfully reads the .lef and gives segmentation error for the .def file.
image

FYI, I am running this inside WSL and the docker container inside the WSL. I have 15gb of memory resource available with 3 gb swap.
image

Also, I am trying to run the TILOS benchmark. Do you have any guidelines or documentation to run that benchmark?

@limbo018
Copy link
Owner

How many lef files does Nangate45 have? You need to include all of them by putting the technology lef before the macro lef files like following,

"lef_input" : ["benchmarks/ispd2015/mgc_des_perf_1/tech.lef", "benchmarks/ispd2015/mgc_des_perf_1/cells.lef"]

@IshraqAtUCF
Copy link
Author

There are 4 files. I did add them like the way you mentioned. But they seem to still give the segmentation error. Do you have any reasoning why this is happening?

@IshraqAtUCF
Copy link
Author

IshraqAtUCF commented Jul 1, 2024

Just to add to this @limbo018, do you have any reference to the TILOS MacroPlacement designs that is working for DREAMPlace? I am asking this because the segmentation error might be due to incompatibility of the .lef and .def files I am using with DREAMPlace.

@limbo018
Copy link
Owner

limbo018 commented Jul 1, 2024

We did try TILOS benchmarks and it looked fine. Let me come back to you about whether any modifications are made.

@IshraqAtUCF
Copy link
Author

I'd highly appreciate if you could provide the files you used for the TILOS benchmark or any direction to a branch that has the implementation @limbo018

@Constwelve
Copy link
Contributor

I synthesized the netlist via OpenRoad and imported the design into Innovus to regenerate the .lef def file. The files generated this way work for DREAMPplace.

@IshraqAtUCF
Copy link
Author

Hi @Constwelve and @limbo018. I synthesized (Genus) and created .def file (Innovus) for the ASAP7 - Mempool of TILOS MacroPlacement. I gave the following input to the test/ispd2005/adaptec1.json file and removed the aux input.

"lef_input" : ["lef/sram_asap7_32x256_1rw.lef", "lef/sram_asap7_64x64_1rw.lef","lef/asap7_tech_1x_201209.lef","lef/asap7sc7p5t_27_R_1x_201211.lef"], "def_input" : "def/mempool_tile_wrap.def",
The .def file is generated through Innovus and the lef files were already there in MacroPlacement.

I am still getting a segmentation error.

Here is the log file. I appreciate any sort of suggestion.

mempool_ASAP7.txt

@limbo018
Copy link
Owner

limbo018 commented Jul 3, 2024

@IshraqAtUCF Should the order be as following?

"lef_input" : ["lef/asap7_tech_1x_201209.lef", "lef/sram_asap7_32x256_1rw.lef", "lef/sram_asap7_64x64_1rw.lef", "lef/asap7sc7p5t_27_R_1x_201211.lef"]

@Constwelve Could you share your Mempool case?

@IshraqAtUCF
Copy link
Author

It gives the same segmentation error even if I change the ordering in the lef files. @limbo018

And yes, I would appreciate if you could share your files @Constwelve

@Constwelve
Copy link
Contributor

@nineight908
Copy link

这是我生成的文件,您可以试用一下。 https://www.dropbox.com/scl/fi/1av6bjjp82js7vfb4t7xi/TILOS_lefdef.zip?rlkey=ie7hp4nzalooccyb6rss5hnk7&st=cu03rnv5&dl=0

Hello professor, can you please share with me the lef files of ariane133 and ariane136 of the NanGate45, I would be grateful for that @Constwelve

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants