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
0f90e982
Commit
0f90e982
authored
Apr 23, 2025
by
chengshuyao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update print function for BDD.plot
parent
964df446
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
src/print_circuit.h
+13
-3
No files found.
src/print_circuit.h
View file @
0f90e982
...
...
@@ -17,17 +17,27 @@ int BDD_class::print_circuit(BDD_node** BDD,int* most_influence){
char
plot_file_name
[
100
];
sprintf
(
plot_file_name
,
"BDD.plot"
);
ofstream
plot_file
(
plot_file_name
);
for
(
int
i
=
0
;
i
<
total_BDD_depth
+
1
;
i
++
){
for
(
int
i
=
0
;
i
<
total_BDD_depth
;
i
++
){
plot_file
<<
"["
;
for
(
int
j
=
0
;
j
<
BDD_width_each_layer
[
i
];
j
++
){
plot_file
<<
BDD
[
i
][
j
].
left_node_index
<<
","
<<
BDD
[
i
][
j
].
right_node_index
;
plot_file
<<
"("
<<
BDD
[
i
][
j
].
left_node_index
<<
","
<<
BDD
[
i
][
j
].
right_node_index
<<
")"
;
if
(
j
<
(
BDD_width_each_layer
[
i
]
-
1
)){
plot_file
<<
","
;
}
else
{
plot_file
<<
endl
;
//
plot_file <<endl;
}
}
plot_file
<<
"]"
<<
endl
;
}
plot_file
<<
"["
;
for
(
int
i
=
0
;
i
<
total_BDD_depth
;
i
++
){
plot_file
<<
BDD
[
i
][
0
].
this_layer_bit_expansion
;
if
(
i
<
total_BDD_depth
-
1
)
plot_file
<<
","
;
}
plot_file
<<
"]"
<<
endl
;
//finish copy
/////////////////////////////////// output_module_file << "//circuit accuracy = "<<circuit_accuracy<<endl;
...
...
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