Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BSD
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
SunMaple
BSD
Commits
5cba0271
Commit
5cba0271
authored
Aug 28, 2025
by
chengshuyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug layer switch overflow
parent
6cce9111
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
src/BSD.h
+3
-3
src/top.h
+2
-2
No files found.
src/BSD.h
View file @
5cba0271
...
...
@@ -1237,7 +1237,7 @@ int BDD_class::BDD_FULL_PROCESS(){
max_group
=
zj
;
else
max_group
=
zj
-
1
;
max_move_length
=
max
(
4
0
,
int
((
parameter_input_bit_width
/
(
1
+
zj
))
-
3
))
;
max_move_length
=
max
(
1
0
,
int
((
parameter_input_bit_width
/
(
1
+
zj
))
-
3
))
;
cout
<<
"######################################################################"
<<
endl
;
cout
<<
"Switch Times "
<<
zj
<<
endl
;
...
...
@@ -1255,7 +1255,7 @@ int BDD_class::BDD_FULL_PROCESS(){
int
move_length
=
min
(
total_BDD_depth
-
i
-
max_group
-
3
,
max_move_length
);
for
(
int
zi
=
0
;
zi
<=
move_length
;
zi
++
){
for
(
int
zk
=
0
;
zk
<=
min
(
max_group
,
move_length
-
1
);
zk
++
){
BSD_switch_layer
(
i
+
zi
+
min
(
max_group
,
move_length
-
1
)
-
zk
);
BSD_switch_layer
(
(
i
+
zi
+
min
(
max_group
,
move_length
-
1
)
-
zk
)
%
total_BDD_depth
);
if
(
total_split_nodes_recursive
<
best_total_split_nodes_recursive
){
best_total_split_nodes_recursive
=
total_split_nodes_recursive
;
cout
<<
" move length "
<<
zi
<<
" move group "
<<
zk
;
...
...
@@ -1270,7 +1270,7 @@ int BDD_class::BDD_FULL_PROCESS(){
if
(
total_split_nodes_recursive
==
best_total_split_nodes_recursive
)
break
;
else
BSD_switch_layer
(
i
+
zi
+
min
(
max_group
,
move_length
-
1
)
-
zk
);
BSD_switch_layer
(
(
i
+
zi
+
min
(
max_group
,
move_length
-
1
)
-
zk
%
total_BDD_depth
)
);
}
}
}
...
...
src/top.h
View file @
5cba0271
#define INPUT_AIG
#include
"usb1_crc16
.h"
#include "
usb1_crc16
_vec.h"
#include
"io_generator/xgate_barrel_shift
.h"
#include "
xgate_barrel_shift
_vec.h"
extern
const
int
parameter_input_bit_width
=
PI_WIDTH
+
5
;
extern
const
int
parameter_output_bit_width
=
PO_WIDTH
;
...
...
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