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
a6f8625d
Commit
a6f8625d
authored
Feb 02, 2022
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Experiments with word-level data structures.
parent
6097ac1d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
7 deletions
+46
-7
src/aig/gia/giaMan.c
+1
-1
src/base/wlc/wlcCom.c
+15
-5
src/base/wln/wlnRead.c
+0
-0
src/base/wln/wlnRtl.c
+30
-1
No files found.
src/aig/gia/giaMan.c
View file @
a6f8625d
...
...
@@ -539,7 +539,7 @@ void Gia_ManPrintStats( Gia_Man_t * p, Gps_Par_t * pPars )
Abc_Print
(
1
,
" %s =%8d"
,
p
->
pMuxes
?
"nod"
:
"and"
,
Gia_ManAndNum
(
p
)
);
SetConsoleTextAttribute
(
hConsole
,
13
);
// magenta
Abc_Print
(
1
,
" lev =%5d"
,
Gia_ManLevelNum
(
p
)
);
Abc_Print
(
1
,
" (%.2f)"
,
Gia_ManLevelAve
(
p
)
);
Abc_Print
(
1
,
" (%
7
.2f)"
,
Gia_ManLevelAve
(
p
)
);
SetConsoleTextAttribute
(
hConsole
,
7
);
// normal
}
#else
...
...
src/base/wlc/wlcCom.c
View file @
a6f8625d
...
...
@@ -2130,18 +2130,22 @@ int Abc_CommandSolve( Abc_Frame_t * pAbc, int argc, char ** argv )
extern
void
Rtl_LibOrderWires
(
Rtl_Lib_t
*
pLib
);
extern
void
Rtl_LibOrderCells
(
Rtl_Lib_t
*
pLib
);
extern
void
Rtl_LibBlast
(
Rtl_Lib_t
*
pLib
);
extern
void
Rtl_LibBlast2
(
Rtl_Lib_t
*
pLib
);
extern
void
Rtl_LibReorderModules
(
Rtl_Lib_t
*
pLib
);
extern
void
Rtl_LibSolve
(
Rtl_Lib_t
*
pLib
);
extern
void
Rtl_LibPreprocess
(
Rtl_Lib_t
*
pLib
);
Gia_Man_t
*
pGia
=
NULL
;
Rtl_Lib_t
*
pLib
=
Wlc_AbcGetRtl
(
pAbc
);
int
c
,
fPrepro
=
0
,
fVerbose
=
0
;
int
c
,
f
OldBlast
=
0
,
f
Prepro
=
0
,
fVerbose
=
0
;
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"pvh"
)
)
!=
EOF
)
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"
o
pvh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'o'
:
fOldBlast
^=
1
;
break
;
case
'p'
:
fPrepro
^=
1
;
break
;
...
...
@@ -2157,9 +2161,14 @@ int Abc_CommandSolve( Abc_Frame_t * pAbc, int argc, char ** argv )
Rtl_LibPrintStats
(
pLib
);
//Rtl_LibPrint( NULL, pLib );
Rtl_LibOrderWires
(
pLib
);
Rtl_LibOrderCells
(
pLib
);
Rtl_LibBlast
(
pLib
);
if
(
fOldBlast
)
{
Rtl_LibOrderCells
(
pLib
);
Rtl_LibBlast
(
pLib
);
}
else
Rtl_LibBlast2
(
pLib
);
//Rtl_LibReorderModules( pLib );
//Rtl_LibPrintStats( pLib );
...
...
@@ -2172,8 +2181,9 @@ int Abc_CommandSolve( Abc_Frame_t * pAbc, int argc, char ** argv )
Gia_ManStopP
(
&
pGia
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: %%solve [-pvh]
\n
"
);
Abc_Print
(
-
2
,
"usage: %%solve [-
o
pvh]
\n
"
);
Abc_Print
(
-
2
,
"
\t
experiments with word-level networks
\n
"
);
Abc_Print
(
-
2
,
"
\t
-o : toggle using old bit-blasting procedure [default = %s]
\n
"
,
fOldBlast
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-p : toggle preprocessing for verification [default = %s]
\n
"
,
fPrepro
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-v : toggle printing verbose information [default = %s]
\n
"
,
fVerbose
?
"yes"
:
"no"
);
Abc_Print
(
-
2
,
"
\t
-h : print the command usage
\n
"
);
...
...
src/base/wln/wlnRead.c
View file @
a6f8625d
This diff is collapsed.
Click to expand it.
src/base/wln/wlnRtl.c
View file @
a6f8625d
...
...
@@ -49,6 +49,34 @@ ABC_NAMESPACE_IMPL_START
SeeAlso []
***********************************************************************/
#define MAX_LINE 1000000
void
Rtl_NtkCleanFile
(
char
*
pFileName
)
{
char
*
pBuffer
,
*
pFileName2
=
"_temp__.rtlil"
;
FILE
*
pFile
=
fopen
(
pFileName
,
"rb"
);
FILE
*
pFile2
;
if
(
pFile
==
NULL
)
{
printf
(
"Cannot open file
\"
%s
\"
for reading.
\n
"
,
pFileName
);
return
;
}
pFile2
=
fopen
(
pFileName2
,
"wb"
);
if
(
pFile2
==
NULL
)
{
fclose
(
pFile
);
printf
(
"Cannot open file
\"
%s
\"
for writing.
\n
"
,
pFileName2
);
return
;
}
pBuffer
=
ABC_ALLOC
(
char
,
MAX_LINE
);
while
(
fgets
(
pBuffer
,
MAX_LINE
,
pFile
)
!=
NULL
)
if
(
!
strstr
(
pBuffer
,
"attribute
\\
src"
)
)
fputs
(
pBuffer
,
pFile2
);
ABC_FREE
(
pBuffer
);
fclose
(
pFile
);
fclose
(
pFile2
);
}
char
*
Wln_GetYosysName
()
{
char
*
pYosysName
=
NULL
;
...
...
@@ -105,7 +133,8 @@ Rtl_Lib_t * Wln_ReadSystemVerilog( char * pFileName, char * pTopModule, int fCol
printf
(
"Dumped the design into file
\"
%s
\"
.
\n
"
,
pFileTemp
);
return
NULL
;
}
//unlink( pFileTemp );
Rtl_NtkCleanFile
(
pFileTemp
);
unlink
(
pFileTemp
);
return
pNtk
;
}
Gia_Man_t
*
Wln_BlastSystemVerilog
(
char
*
pFileName
,
char
*
pTopModule
,
int
fSkipStrash
,
int
fInvert
,
int
fTechMap
,
int
fVerbose
)
...
...
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