Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
macroplacement
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
macroplacement
Commits
0456e9c2
Commit
0456e9c2
authored
Jul 16, 2022
by
ZhiangWang033
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix escape char
parent
64b5ef83
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
5 deletions
+35
-5
CodeElements/FormatTranslators/src/FormatTranslators.py
+35
-5
CodeElements/FormatTranslators/src/__pycache__/FormatTranslators.cpython-37.pyc
+0
-0
CodeElements/FormatTranslators/test/LefDef2ProtocolBufferFormat/ariane.pb.txt
+0
-0
No files found.
CodeElements/FormatTranslators/src/FormatTranslators.py
View file @
0456e9c2
...
...
@@ -41,7 +41,13 @@ class Port:
def
__str__
(
self
):
self
.
str
=
""
self
.
str
+=
"node {
\n
"
self
.
str
+=
' name: "'
+
self
.
name
+
'"
\n
'
name
=
''
for
char
in
self
.
name
:
if
char
==
'
\\
'
:
name
+=
'
\\\\
'
else
:
name
+=
char
self
.
str
+=
' name: "'
+
name
+
'"
\n
'
for
sink
in
self
.
sinks
:
sink_new
=
''
for
char
in
sink
:
...
...
@@ -113,7 +119,13 @@ class StandardCell:
def
__str__
(
self
):
self
.
str
=
""
self
.
str
+=
"node {
\n
"
self
.
str
+=
' name: "'
+
self
.
name
+
'"
\n
'
name
=
''
for
char
in
self
.
name
:
if
char
==
'
\\
'
:
name
+=
'
\\\\
'
else
:
name
+=
char
self
.
str
+=
' name: "'
+
name
+
'"
\n
'
for
sink
in
self
.
sinks
:
sink_new
=
''
for
char
in
sink
:
...
...
@@ -202,7 +214,13 @@ class Macro:
def
__str__
(
self
):
self
.
str
=
""
self
.
str
+=
"node {
\n
"
self
.
str
+=
' name: "'
+
self
.
name
+
'"
\n
'
name
=
''
for
char
in
self
.
name
:
if
char
==
'
\\
'
:
name
+=
'
\\\\
'
else
:
name
+=
char
self
.
str
+=
' name: "'
+
name
+
'"
\n
'
self
.
str
+=
" attr {
\n
"
self
.
str
+=
' key: "type"
\n
'
self
.
str
+=
' value {
\n
'
...
...
@@ -275,7 +293,13 @@ class MacroPin:
def
__str__
(
self
):
self
.
str
=
""
self
.
str
+=
"node {
\n
"
self
.
str
+=
' name: "'
+
self
.
name
+
'"
\n
'
name
=
''
for
char
in
self
.
name
:
if
char
==
'
\\
'
:
name
+=
'
\\\\
'
else
:
name
+=
char
self
.
str
+=
' name: "'
+
name
+
'"
\n
'
for
sink
in
self
.
sinks
:
sink_new
=
''
for
char
in
sink
:
...
...
@@ -288,7 +312,13 @@ class MacroPin:
self
.
str
+=
" attr {
\n
"
self
.
str
+=
' key: "macro_name"
\n
'
self
.
str
+=
' value {
\n
'
self
.
str
+=
' placeholder: "'
+
str
(
self
.
macro_name
)
+
'"
\n
'
macro_name
=
''
for
char
in
self
.
macro_name
:
if
char
==
'
\\
'
:
macro_name
+=
'
\\\\
'
else
:
macro_name
+=
char
self
.
str
+=
' placeholder: "'
+
str
(
macro_name
)
+
'"
\n
'
self
.
str
+=
' }
\n
'
self
.
str
+=
' }
\n
'
self
.
str
+=
" attr {
\n
"
...
...
CodeElements/FormatTranslators/src/__pycache__/FormatTranslators.cpython-37.pyc
View file @
0456e9c2
No preview for this file type
CodeElements/FormatTranslators/test/LefDef2ProtocolBufferFormat/ariane.pb.txt
View file @
0456e9c2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment