Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kawamura-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
kawamura-solver
Commits
f1f703eb
Commit
f1f703eb
authored
Aug 28, 2019
by
kazushi.kawamura
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs
parent
51026c0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.py
scripts/main.py
+3
-3
No files found.
scripts/main.py
View file @
f1f703eb
...
@@ -92,7 +92,7 @@ def main(args):
...
@@ -92,7 +92,7 @@ def main(args):
if
mmio
.
read
(
0x10
)
==
0
:
if
mmio
.
read
(
0x10
)
==
0
:
print
(
'Fail routing m(_ _)m'
)
print
(
'Fail routing m(_ _)m'
)
return
# End function
sys
.
exit
(
1
)
W_ext
=
np
.
zeros
((
1
,),
dtype
=
np
.
int16
)
W_ext
=
np
.
zeros
((
1
,),
dtype
=
np
.
int16
)
H_ext
=
np
.
zeros
((
1
,),
dtype
=
np
.
int16
)
H_ext
=
np
.
zeros
((
1
,),
dtype
=
np
.
int16
)
...
@@ -106,11 +106,11 @@ def main(args):
...
@@ -106,11 +106,11 @@ def main(args):
if
W_ext
[
0
]
>
info
[
'W'
][
0
]
or
H_ext
[
0
]
>
info
[
'H'
][
0
]:
if
W_ext
[
0
]
>
info
[
'W'
][
0
]
or
H_ext
[
0
]
>
info
[
'H'
][
0
]:
print
(
'Fail satisfying constraint T_T'
)
print
(
'Fail satisfying constraint T_T'
)
sys
.
exit
(
1
)
sys
.
exit
(
1
)
else
:
else
:
print
(
'Satisfy constraint ^_^'
)
print
(
'Satisfy constraint ^_^'
)
if
args
[
'output'
]
is
not
None
:
mySolverModule
.
output_to_file
(
args
[
'output'
],
W_ext
[
0
],
H_ext
[
0
],
info
[
'blocks'
][
0
],
info
[
'line_num'
][
0
],
info
[
'block_info'
],
result
)
if
args
[
'output'
]
is
not
None
:
mySolverModule
.
output_to_file
(
args
[
'output'
],
W_ext
[
0
],
H_ext
[
0
],
info
[
'blocks'
][
0
],
info
[
'line_num'
][
0
],
info
[
'block_info'
],
result
)
sys
.
exit
(
0
)
sys
.
exit
(
0
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
...
...
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