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
5d1a5f35
Commit
5d1a5f35
authored
Nov 30, 2014
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes to history recording and other small things.
parent
1d20dea1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
src/aig/gia/giaIf.c
+13
-3
src/aig/gia/giaSweep.c
+3
-3
src/base/cmd/cmdHist.c
+2
-0
No files found.
src/aig/gia/giaIf.c
View file @
5d1a5f35
...
...
@@ -499,6 +499,7 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
if
(
nMuxF
)
Gia_ManCountDupLut
(
p
);
return
;
if
(
pDumpFile
)
{
static
char
FileNameOld
[
1000
]
=
{
0
};
...
...
@@ -509,11 +510,18 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
sprintf
(
FileNameOld
,
"%s"
,
p
->
pName
);
fprintf
(
pTable
,
"
\n
"
);
fprintf
(
pTable
,
"%s "
,
p
->
pName
);
fprintf
(
pTable
,
"%d "
,
Gia_ManCiNum
(
p
)
);
fprintf
(
pTable
,
"%d "
,
Gia_ManCoNum
(
p
)
);
fprintf
(
pTable
,
"%d "
,
Gia_ManAndNum
(
p
)
);
// fprintf( pTable, "%d ", Gia_ManCiNum(p) );
// fprintf( pTable, "%d ", Gia_ManCoNum(p) );
// fprintf( pTable, "%d ", Gia_ManAndNum(p) );
fprintf
(
pTable
,
"%d "
,
Gia_ManPiNum
(
p
)
-
Gia_ManBoxCiNum
(
p
)
-
Gia_ManRegBoxNum
(
p
)
);
fprintf
(
pTable
,
"%d "
,
Gia_ManPoNum
(
p
)
-
Gia_ManBoxCoNum
(
p
)
-
Gia_ManRegBoxNum
(
p
)
);
fprintf
(
pTable
,
"%d "
,
Gia_ManClockDomainNum
(
p
)
);
fprintf
(
pTable
,
" "
);
fprintf
(
pTable
,
"%d "
,
nLuts
);
fprintf
(
pTable
,
"%d "
,
LevelMax
);
fprintf
(
pTable
,
"%d "
,
Gia_ManRegBoxNum
(
p
)
);
fprintf
(
pTable
,
"%d "
,
Gia_ManNonRegBoxNum
(
p
)
);
clk
=
Abc_Clock
();
}
else
...
...
@@ -521,6 +529,8 @@ void Gia_ManPrintMappingStats( Gia_Man_t * p, char * pDumpFile )
fprintf
(
pTable
,
" "
);
fprintf
(
pTable
,
"%d "
,
nLuts
);
fprintf
(
pTable
,
"%d "
,
LevelMax
);
fprintf
(
pTable
,
"%d "
,
Gia_ManRegBoxNum
(
p
)
);
fprintf
(
pTable
,
"%d "
,
Gia_ManNonRegBoxNum
(
p
)
);
fprintf
(
pTable
,
"%.2f"
,
1
.
0
*
(
Abc_Clock
()
-
clk
)
/
CLOCKS_PER_SEC
);
clk
=
Abc_Clock
();
}
...
...
src/aig/gia/giaSweep.c
View file @
5d1a5f35
...
...
@@ -654,7 +654,7 @@ Gia_Man_t * Gia_ManSweepWithBoxesAndDomains( Gia_Man_t * p, void * pParsS, int f
pNew
=
Gia_ManDupWithBoxes
(
pTemp
=
pNew
,
1
);
Gia_ManStop
(
pTemp
);
// report
//
if ( fVerbose )
if
(
fVerbose
)
{
printf
(
"Domain %2d : %5d -> %5d : "
,
iDom
,
nFlops
,
Vec_IntCountEntry
(
pNew
->
vRegClasses
,
iDom
)
);
Gia_ManPrintStats
(
pNew
,
NULL
);
...
...
@@ -687,8 +687,8 @@ Gia_Man_t * Gia_ManSweepWithBoxes( Gia_Man_t * p, void * pParsC, void * pParsS,
assert
(
Gia_ManRegNum
(
p
)
==
0
);
assert
(
p
->
pAigExtra
!=
NULL
);
// consider seq synthesis with multiple clock domains
//
if ( pParsC == NULL && Gia_ManClockDomainNum(p) > 1 )
//
return Gia_ManSweepWithBoxesAndDomains( p, pParsS, fConst, fEquiv, fVerbose );
if
(
pParsC
==
NULL
&&
Gia_ManClockDomainNum
(
p
)
>
1
)
return
Gia_ManSweepWithBoxesAndDomains
(
p
,
pParsS
,
fConst
,
fEquiv
,
fVerbose
);
// order AIG objects
pNew
=
Gia_ManDupUnnormalize
(
p
);
if
(
pNew
==
NULL
)
...
...
src/base/cmd/cmdHist.c
View file @
5d1a5f35
...
...
@@ -59,8 +59,10 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
Buffer
[
Len
-
1
]
=
0
;
if
(
strlen
(
Buffer
)
>
3
&&
strncmp
(
Buffer
,
"set"
,
3
)
&&
strncmp
(
Buffer
,
"inset"
,
5
)
&&
strncmp
(
Buffer
,
"time"
,
4
)
&&
strncmp
(
Buffer
,
"quit"
,
4
)
&&
strncmp
(
Buffer
,
"alias"
,
5
)
&&
// strncmp(Buffer,"source",6) &&
strncmp
(
Buffer
,
"history"
,
7
)
&&
strncmp
(
Buffer
,
"hi "
,
3
)
&&
strcmp
(
Buffer
,
"hi"
)
&&
Buffer
[
strlen
(
Buffer
)
-
1
]
!=
'?'
)
...
...
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