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
affb43e2
Commit
affb43e2
authored
Apr 24, 2011
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added switch to control duplication of logic after mapping.
parent
2becb24a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
3 deletions
+45
-3
.hgignore
+1
-0
abclib.dsp
+36
-0
src/base/abci/abc.c
+6
-2
src/base/abci/abcIf.c
+1
-1
src/map/if/if.h
+1
-0
No files found.
.hgignore
View file @
affb43e2
...
...
@@ -16,6 +16,7 @@ src/ext/
src/xxx/
src/aig/au/
src/aig/ssm/
src/aig/ddb/
*~
*.orig
...
...
abclib.dsp
View file @
affb43e2
...
...
@@ -4370,6 +4370,42 @@ SOURCE=.\src\aig\ssm\ssmSimulate.c
SOURCE=.\src\aig\ssm\ssmWrite.c
# End Source File
# End Group
# Begin Group "ddb"
# PROP Default_Filter ""
# Begin Source File
SOURCE=.\src\aig\ddb\ddb.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddb.h
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbGarb.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbInt.h
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbMan.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbOper.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbReo.c
# End Source File
# Begin Source File
SOURCE=.\src\aig\ddb\ddbTable.c
# End Source File
# End Group
# End Group
# End Group
# Begin Group "Header Files"
...
...
src/base/abci/abc.c
View file @
affb43e2
...
...
@@ -12682,7 +12682,7 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
fLutMux
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KCFADEqaflepmrsdbugvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"KCFADEqaflepmrsdbug
o
vh"
)
)
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -12793,6 +12793,9 @@ int Abc_CommandIf( Abc_Frame_t * pAbc, int argc, char ** argv )
case
'g'
:
pPars
->
fDelayOpt
^=
1
;
break
;
case
'o'
:
pPars
->
fUseBuffs
^=
1
;
break
;
case
'v'
:
pPars
->
fVerbose
^=
1
;
break
;
...
...
@@ -12949,7 +12952,7 @@ usage:
sprintf
(
LutSize
,
"library"
);
else
sprintf
(
LutSize
,
"%d"
,
pPars
->
nLutSize
);
Abc_Print
(
-
2
,
"usage: if [-KCFA num] [-DE float] [-qarlepmsdbugvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: if [-KCFA num] [-DE float] [-qarlepmsdbug
o
vh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
performs FPGA technology mapping of the network
\n
"
);
Abc_Print
(
-
2
,
"
\t
-K num : the number of LUT inputs (2 < num < %d) [default = %s]
\n
"
,
IF_MAX_LUTSIZE
+
1
,
LutSize
);
Abc_Print
(
-
2
,
"
\t
-C num : the max number of priority cuts (0 < num < 2^12) [default = %d]
\n
"
,
pPars
->
nCutsMax
);
...
...
@@ -12970,6 +12973,7 @@ usage:
Abc_Print
(
-
2
,
"
\t
-b : toggles the use of one special feature [default = %s]
\n
"
,
pPars
->
fUseBat
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-u : toggles the use of MUXes along with LUTs [default = %s]
\n
"
,
fLutMux
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-g : toggles global delay optimization [default = %s]
\n
"
,
pPars
->
fDelayOpt
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-o : toggles using buffers to decouple combinational outputs [default = %s]
\n
"
,
pPars
->
fUseBuffs
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggles verbose output [default = %s]
\n
"
,
pPars
->
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : prints the command usage
\n
"
);
return
1
;
...
...
src/base/abci/abcIf.c
View file @
affb43e2
...
...
@@ -282,7 +282,7 @@ Abc_Ntk_t * Abc_NtkFromIf( If_Man_t * pIfMan, Abc_Ntk_t * pNtk )
if
(
pIfMan
->
pPars
->
fUseBdds
)
Abc_NtkBddReorder
(
pNtkNew
,
0
);
// decouple the PO driver nodes to reduce the number of levels
nDupGates
=
Abc_NtkLogicMakeSimpleCos
(
pNtkNew
,
1
);
nDupGates
=
Abc_NtkLogicMakeSimpleCos
(
pNtkNew
,
!
pIfMan
->
pPars
->
fUseBuffs
);
if
(
nDupGates
&&
pIfMan
->
pPars
->
fVerbose
)
printf
(
"Duplicated %d gates to decouple the CO drivers.
\n
"
,
nDupGates
);
return
pNtkNew
;
...
...
src/map/if/if.h
View file @
affb43e2
...
...
@@ -95,6 +95,7 @@ struct If_Par_t_
int
fSeqMap
;
// sequential mapping
int
fBidec
;
// use bi-decomposition
int
fUseBat
;
// use one specialized feature
int
fUseBuffs
;
// use buffers to decouple outputs
int
fVerbose
;
// the verbosity flag
// internal parameters
int
fDelayOpt
;
// special delay optimization
...
...
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