Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
solver
Project
Project
Details
Activity
Releases
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
adc2019
solver
Commits
eae29f6f
Commit
eae29f6f
authored
Jul 10, 2019
by
kazushi.kawamura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change parameter name
parent
2df006bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
router.cpp
router/router.cpp
+1
-1
router.hpp
router/router.hpp
+1
-1
No files found.
router/router.cpp
View file @
eae29f6f
...
...
@@ -90,7 +90,7 @@ int router(short int size_x, short int size_y, short int line_num, short int boa
cout
<<
"rip-up routing ..."
<<
endl
;
short
int
last_target
=
-
1
;
ap_uint
<
16
>
round
;
for
(
round
=
1
;
round
<=
ROUND_
END
;
round
++
)
{
for
(
round
=
1
;
round
<=
ROUND_
LIMIT
;
round
++
)
{
short
int
target
=
lfsr_random
()
%
line_num
;
if
(
adjacents
[
target
])
continue
;
if
(
target
==
last_target
)
continue
;
...
...
router/router.hpp
View file @
eae29f6f
...
...
@@ -11,7 +11,7 @@
using
namespace
std
;
#define ROUND_
END
32768 // Max=65534(=2^16-2)
#define ROUND_
LIMIT
32768 // Max=65534(=2^16-2)
#define PRINT_BOARD
//#define PRINT_SEARCH // for router debug
...
...
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