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
61211df4
Commit
61211df4
authored
Feb 01, 2012
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lazy man's logic synthesis.
parent
5004aa19
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
src/base/abc/abc.h
+1
-1
src/base/abci/abc.c
+17
-3
src/base/abci/abcRec.c
+0
-0
No files found.
src/base/abc/abc.h
View file @
61211df4
...
...
@@ -768,7 +768,7 @@ extern ABC_DLL int Abc_NtkIvyProve( Abc_Ntk_t ** ppNtk, void * pP
/*=== abcRec.c ==========================================================*/
extern
ABC_DLL
void
Abc_NtkRecStart
(
Abc_Ntk_t
*
pNtk
,
int
nVars
,
int
nCuts
,
int
fTrim
);
extern
ABC_DLL
void
Abc_NtkRecStop
();
extern
ABC_DLL
void
Abc_NtkRecAdd
(
Abc_Ntk_t
*
pNtk
);
extern
ABC_DLL
void
Abc_NtkRecAdd
(
Abc_Ntk_t
*
pNtk
,
int
fUseSOPB
);
extern
ABC_DLL
void
Abc_NtkRecPs
(
int
fPrintLib
);
extern
ABC_DLL
void
Abc_NtkRecFilter
(
int
nLimit
);
extern
ABC_DLL
void
Abc_NtkRecLibMerge
(
Abc_Ntk_t
*
pNtk
);
...
...
src/base/abci/abc.c
View file @
61211df4
...
...
@@ -11997,12 +11997,16 @@ int Abc_CommandRecAdd( Abc_Frame_t * pAbc, int argc, char ** argv )
{
Abc_Ntk_t
*
pNtk
=
Abc_FrameReadNtk
(
pAbc
);
int
c
;
int
fUseSOPB
=
0
;
// set defaults
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
d
h"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
g
h"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'g'
:
fUseSOPB
=
1
;
break
;
case
'h'
:
goto
usage
;
default:
...
...
@@ -12019,7 +12023,7 @@ int Abc_CommandRecAdd( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print
(
-
1
,
"This command works for AIGs after calling
\"
rec_start
\"
.
\n
"
);
return
0
;
}
Abc_NtkRecAdd
(
pNtk
);
Abc_NtkRecAdd
(
pNtk
,
fUseSOPB
);
return
0
;
usage:
...
...
@@ -13422,13 +13426,23 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
}
// modify for global delay optimization
if
(
pPars
->
fDelayOpt
||
pPars
->
fUserRecLib
)
if
(
pPars
->
fDelayOpt
)
{
pPars
->
fTruth
=
1
;
pPars
->
fExpRed
=
0
;
pPars
->
fUsePerm
=
1
;
pPars
->
pLutLib
=
NULL
;
}
// modify the subgraph recording
if
(
pPars
->
fUserRecLib
)
{
pPars
->
fTruth
=
1
;
pPars
->
fExpRed
=
0
;
pPars
->
fUsePerm
=
1
;
pPars
->
pLutLib
=
NULL
;
pPars
->
fCutMin
=
1
;
}
/*
// modify for LUT structures
if ( pPars->pLutStruct )
...
...
src/base/abci/abcRec.c
View file @
61211df4
This diff is collapsed.
Click to expand it.
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