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
ba2e02d6
Commit
ba2e02d6
authored
5 years ago
by
Kevin
Browse files
Options
Downloads
Patches
Plain Diff
added another simple test in system_test.py
parent
e4949d28
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!25
Resolve "System tests iteration 1"
,
!24
Resolve "System tests iteration 1"
Pipeline
#13337
failed
5 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/system_test.py
+17
-0
17 additions, 0 deletions
test/system_test.py
with
17 additions
and
0 deletions
test/system_test.py
+
17
−
0
View file @
ba2e02d6
...
...
@@ -100,3 +100,20 @@ def test_large_operation_tree():
output
=
simulate
.
run_for
(
len
(
random_inputs
))
assert
simulate
.
results
[
num_inputs
][
'
out1
'
]
>
sum
(
random_inputs
)
def
test_looping_sfg
():
"""
A valid looping SFG.
+------<constmul2------+
| |
| |
in1>------add1>----constmul1>------+------out1>
"""
in1
=
Input
()
constmul1
=
ConstantMultiplication
(
1
)
constmul2
=
ConstantMultiplication
(
1
)
add1
=
in1
+
constmul2
constmul2
.
input
(
0
).
connect
(
constmul1
)
out1
=
Output
(
constmul1
)
return
SFG
(
inputs
=
[
in1
],
outputs
=
[
out1
])
\ No newline at end of file
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