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
9e668f1b
Commit
9e668f1b
authored
Mar 17, 2017
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Synthesis for mesh of LUTs.
parent
d66ff2cf
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
107 additions
and
0 deletions
+107
-0
abclib.dsp
+4
-0
src/base/abci/abc.c
+102
-0
src/sat/bmc/bmcMesh.c
+0
-0
src/sat/bmc/module.make
+1
-0
No files found.
abclib.dsp
View file @
9e668f1b
...
...
@@ -1963,6 +1963,10 @@ SOURCE=.\src\sat\bmc\bmcMaxi.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\bmc\bmcMesh.c
# End Source File
# Begin Source File
SOURCE=.\src\sat\bmc\bmcMulti.c
# End Source File
# Begin Source File
...
...
src/base/abci/abc.c
View file @
9e668f1b
...
...
@@ -457,6 +457,7 @@ static int Abc_CommandAbc9ReachN ( Abc_Frame_t * pAbc, int argc, cha
static
int
Abc_CommandAbc9ReachY
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
#endif
static
int
Abc_CommandAbc9Undo
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Mesh
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9Iso
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9IsoNpn
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
static
int
Abc_CommandAbc9IsoSt
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
);
...
...
@@ -1109,6 +1110,7 @@ void Abc_Init( Abc_Frame_t * pAbc )
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&reachy"
,
Abc_CommandAbc9ReachY
,
0
);
#endif
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&undo"
,
Abc_CommandAbc9Undo
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&mesh"
,
Abc_CommandAbc9Mesh
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&iso"
,
Abc_CommandAbc9Iso
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&isonpn"
,
Abc_CommandAbc9IsoNpn
,
0
);
Cmd_CommandAdd
(
pAbc
,
"ABC9"
,
"&isost"
,
Abc_CommandAbc9IsoSt
,
0
);
...
...
@@ -38031,6 +38033,106 @@ usage:
SeeAlso []
***********************************************************************/
int
Abc_CommandAbc9Mesh
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
extern
void
Bmc_MeshTest
(
Gia_Man_t
*
p
,
int
X
,
int
Y
,
int
T
,
int
fVerbose
);
int
X
=
4
;
int
Y
=
4
;
int
T
=
3
;
int
c
,
fVerbose
=
1
;
// set defaults
Extra_UtilGetoptReset
();
while
(
(
c
=
Extra_UtilGetopt
(
argc
,
argv
,
"XYTh"
)
)
!=
EOF
)
{
switch
(
c
)
{
case
'X'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-X
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
X
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
X
<
3
)
goto
usage
;
break
;
case
'Y'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-Y
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
Y
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
Y
<
3
)
goto
usage
;
break
;
case
'T'
:
if
(
globalUtilOptind
>=
argc
)
{
Abc_Print
(
-
1
,
"Command line switch
\"
-T
\"
should be followed by an integer.
\n
"
);
goto
usage
;
}
T
=
atoi
(
argv
[
globalUtilOptind
]);
globalUtilOptind
++
;
if
(
T
<
2
)
goto
usage
;
break
;
case
'v'
:
fVerbose
^=
1
;
break
;
case
'h'
:
goto
usage
;
default:
goto
usage
;
}
}
if
(
pAbc
->
pGia
==
NULL
)
{
Abc_Print
(
-
1
,
"Abc_CommandAbc9Mesh(): There is no design.
\n
"
);
return
1
;
}
if
(
Gia_ManCoNum
(
pAbc
->
pGia
)
!=
1
)
{
Abc_Print
(
-
1
,
"Currently this command expects AIG with one output.
\n
"
);
return
1
;
}
if
(
Gia_ManCiNum
(
pAbc
->
pGia
)
>
20
)
{
Abc_Print
(
-
1
,
"Currently this command expects AIG with no more than 20 nodes.
\n
"
);
return
1
;
}
if
(
Gia_ManLevelNum
(
pAbc
->
pGia
)
>
T
)
{
Abc_Print
(
-
1
,
"The depth of the AIG (%d) cannot be larger than the latency (%d).
\n
"
,
Gia_ManLevelNum
(
pAbc
->
pGia
),
T
);
return
1
;
}
Bmc_MeshTest
(
pAbc
->
pGia
,
X
,
Y
,
T
,
fVerbose
);
return
0
;
usage:
Abc_Print
(
-
2
,
"usage: &mesh [-XYT num] [-h]
\n
"
);
Abc_Print
(
-
2
,
"
\t
creates a mesh architecture for the given AIG
\n
"
);
Abc_Print
(
-
2
,
"
\t
-X num : horizontal size of the mesh (X >= 3) [default = %d]
\n
"
,
X
);
Abc_Print
(
-
2
,
"
\t
-Y num : vertical size of the mesh (Y >= 3) [default = %d]
\n
"
,
Y
);
Abc_Print
(
-
2
,
"
\t
-T num : the latency of the mesh (T >= 2) [default = %d]
\n
"
,
T
);
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
"
);
return
1
;
}
/**Function*************************************************************
Synopsis []
Description []
SideEffects []
SeeAlso []
***********************************************************************/
int
Abc_CommandAbc9Iso
(
Abc_Frame_t
*
pAbc
,
int
argc
,
char
**
argv
)
{
Gia_Man_t
*
pAig
;
src/sat/bmc/bmcMesh.c
0 → 100644
View file @
9e668f1b
This diff is collapsed.
Click to expand it.
src/sat/bmc/module.make
View file @
9e668f1b
...
...
@@ -21,5 +21,6 @@ SRC += src/sat/bmc/bmcBCore.c \
src/sat/bmc/bmcInse.c
\
src/sat/bmc/bmcLoad.c
\
src/sat/bmc/bmcMaxi.c
\
src/sat/bmc/bmcMesh.c
\
src/sat/bmc/bmcMulti.c
\
src/sat/bmc/bmcUnroll.c
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