Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
8d31ed8c
Commit
8d31ed8c
authored
5 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
More typos...
parent
4fb454f7
No related branches found
No related tags found
2 merge requests
!71
Better schedule, including plotting
,
!69
Some basic functionality for plotting a schedule
Pipeline
#16676
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_operation.py
+3
-3
3 additions, 3 deletions
test/test_operation.py
with
3 additions
and
3 deletions
test/test_operation.py
+
3
−
3
View file @
8d31ed8c
...
@@ -183,7 +183,7 @@ class TestExecutionTime:
...
@@ -183,7 +183,7 @@ class TestExecutionTime:
def
test_set_execution_time
(
self
):
def
test_set_execution_time
(
self
):
bfly
=
Butterfly
()
bfly
=
Butterfly
()
bfly
.
exection_time
=
3
bfly
.
exec
u
tion_time
=
3
assert
bfly
.
execution_time
==
3
assert
bfly
.
execution_time
==
3
...
@@ -215,7 +215,7 @@ class TestPlotCoordinates():
...
@@ -215,7 +215,7 @@ class TestPlotCoordinates():
assert
lat
==
[[
0
,
0
],
[
0
,
1
],
[
3
,
1
],
[
3
,
0
],
[
0
,
0
]]
assert
lat
==
[[
0
,
0
],
[
0
,
1
],
[
3
,
1
],
[
3
,
0
],
[
0
,
0
]]
assert
exe
==
[[
0
,
0
],
[
0
,
1
],
[
1
,
1
],
[
1
,
0
],
[
0
,
0
]]
assert
exe
==
[[
0
,
0
],
[
0
,
1
],
[
1
,
1
],
[
1
,
0
],
[
0
,
0
]]
def
test_complicated_case
():
def
test_complicated_case
(
self
):
bfly
=
Butterfly
(
latency_offsets
=
{
'
in0
'
:
2
,
'
in1
'
:
3
,
'
out0
'
:
5
,
'
out1
'
:
10
})
bfly
=
Butterfly
(
latency_offsets
=
{
'
in0
'
:
2
,
'
in1
'
:
3
,
'
out0
'
:
5
,
'
out1
'
:
10
})
bfly
.
execution_time
=
7
bfly
.
execution_time
=
7
...
@@ -234,7 +234,7 @@ class TestIOCoordinates():
...
@@ -234,7 +234,7 @@ class TestIOCoordinates():
assert
i_c
==
[[
0
,
0.5
]]
assert
i_c
==
[[
0
,
0.5
]]
assert
o_c
==
[[
3
,
0.5
]]
assert
o_c
==
[[
3
,
0.5
]]
def
test_complicated_case
():
def
test_complicated_case
(
self
):
bfly
=
Butterfly
(
latency_offsets
=
{
'
in0
'
:
2
,
'
in1
'
:
3
,
'
out0
'
:
5
,
'
out1
'
:
10
})
bfly
=
Butterfly
(
latency_offsets
=
{
'
in0
'
:
2
,
'
in1
'
:
3
,
'
out0
'
:
5
,
'
out1
'
:
10
})
bfly
.
execution_time
=
7
bfly
.
execution_time
=
7
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment