TILOS-AI-Institute / MacroPlacement

Macro Placement - benchmarks, evaluators, and reproducible results from leading methods in open source
BSD 3-Clause "New" or "Revised" License
220 stars 43 forks source link

Error Parsing Protocol Buffer File #3

Closed Maria-UET closed 2 years ago

Maria-UET commented 2 years ago

I tried to read the ariane.plc file with GraphDef parser. This file is created by the FormatTranslators/LefDef2ProtocolBufferFormat.

I came across this error:

Check failed: plc_or.status() is OK (FAILED_PRECONDITION: Failed to parse GraphDef proto from text.  First failure is at line 3745 column 34 in file '../MacroPlacement/CodeElements/FormatTranslators/test/LefDef2ProtocolBufferFormat/ariane.plc'.  
Proto parser error: Invalid escape sequence in string literal.

The error occurs due to the escape sequence before [ at line 3745. I found that using \\ instead of \ resolves this error.

Can we incorporate this correction in the format translator?

image

ZhiangWang033 commented 2 years ago

Hi Maria, Thanks for your feedback. I have fixed this issue in the format translator. By the way, I have enabled the generation for clustered netlist in protocol buffer format. Here is the example clustered netlist for ariane: https://github.com/TILOS-AI-Institute/MacroPlacement/blob/main/CodeElements/Clustering/test/results/Protocol_buffer_format/ariane.pb.txt. Of course, you can generate other clustered netlists with our scripts.