Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
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
abc
Commits
e5fb4fe5
Commit
e5fb4fe5
authored
Feb 03, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added writing signal names in AIGER writer for GIA package.
parent
e6f87447
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
src/aig/gia/giaAiger.c
+16
-0
No files found.
src/aig/gia/giaAiger.c
View file @
e5fb4fe5
...
@@ -887,6 +887,22 @@ void Gia_WriteAiger( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
...
@@ -887,6 +887,22 @@ void Gia_WriteAiger( Gia_Man_t * pInit, char * pFileName, int fWriteSymbols, int
fwrite
(
pBuffer
,
1
,
Pos
,
pFile
);
fwrite
(
pBuffer
,
1
,
Pos
,
pFile
);
ABC_FREE
(
pBuffer
);
ABC_FREE
(
pBuffer
);
// write the symbol table
if
(
p
->
vNamesIn
&&
p
->
vNamesOut
)
{
assert
(
Vec_PtrSize
(
p
->
vNamesIn
)
==
Gia_ManCiNum
(
p
)
);
assert
(
Vec_PtrSize
(
p
->
vNamesOut
)
==
Gia_ManCoNum
(
p
)
);
// write PIs
Gia_ManForEachPi
(
p
,
pObj
,
i
)
fprintf
(
pFile
,
"i%d %s
\n
"
,
i
,
Vec_PtrEntry
(
p
->
vNamesIn
,
i
)
);
// write latches
Gia_ManForEachRo
(
p
,
pObj
,
i
)
fprintf
(
pFile
,
"l%d %s
\n
"
,
i
,
Vec_PtrEntry
(
p
->
vNamesIn
,
Gia_ManPiNum
(
p
)
+
i
)
);
// write POs
Gia_ManForEachPo
(
p
,
pObj
,
i
)
fprintf
(
pFile
,
"o%d %s
\n
"
,
i
,
Vec_PtrEntry
(
p
->
vNamesOut
,
i
)
);
}
// write the comment
// write the comment
fprintf
(
pFile
,
"c"
);
fprintf
(
pFile
,
"c"
);
// write equivalences
// write equivalences
...
...
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