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
244fa3a7
Commit
244fa3a7
authored
1 year ago
by
Petter Källström
Committed by
Oscar Gustafsson
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Adding introduction.py
parent
41115f33
No related branches found
No related tags found
1 merge request
!274
Adding introduction.py
Pipeline
#93754
passed
1 year ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/introduction.py
+17
-0
17 additions, 0 deletions
examples/introduction.py
with
17 additions
and
0 deletions
examples/introduction.py
0 → 100644
+
17
−
0
View file @
244fa3a7
"""
===============================
Introduction example for course
===============================
"""
from
b_asic.core_operations
import
Addition
,
ConstantMultiplication
from
b_asic.signal_flow_graph
import
SFG
from
b_asic.special_operations
import
Delay
,
Input
,
Output
i
=
Input
()
d
=
Delay
()
o
=
Output
(
d
)
c
=
ConstantMultiplication
(
0.5
,
d
)
a
=
Addition
(
i
,
c
)
d
.
input
(
0
).
connect
(
a
)
sfg
=
SFG
([
i
],
[
o
])
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