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
33e7d27d
Commit
33e7d27d
authored
2 years ago
by
Oscar Gustafsson
Browse files
Options
Downloads
Patches
Plain Diff
Improve documentation for signal generators
parent
2ead0284
No related branches found
No related tags found
1 merge request
!168
Improve documentation for signal generators
Pipeline
#88977
passed
2 years ago
Stage: test
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
b_asic/signal_generator.py
+8
-1
8 additions, 1 deletion
b_asic/signal_generator.py
docs_sphinx/api/signal_generator.rst
+5
-0
5 additions, 0 deletions
docs_sphinx/api/signal_generator.rst
with
13 additions
and
1 deletion
b_asic/signal_generator.py
+
8
−
1
View file @
33e7d27d
...
...
@@ -2,11 +2,18 @@
B-ASIC signal generators
These can be used as input to Simulation to algorithmically provide signal values.
Especially, all classes defined here will act as a callable which accepts an integer
time index and returns the value at that time.
It is worth noting that the standard basic arithmetic operations do work on these,
so one can, e.g., write ``0.5 * Step()`` to get a step input with height 0.5.
This is handled by a number of private generator classes. Check out the source code
if you want more information.
"""
from
math
import
pi
,
sin
from
numbers
import
Number
from
typing
import
Callable
,
Sequence
from
typing
import
Sequence
class
SignalGenerator
:
...
...
This diff is collapsed.
Click to expand it.
docs_sphinx/api/signal_generator.rst
+
5
−
0
View file @
33e7d27d
...
...
@@ -2,5 +2,10 @@
``b_asic.signal_generator``
***************************
.. inheritance-diagram:: b_asic.signal_generator
:parts: 1
:top-classes: b_asic.signal_generator.SignalGenerator
.. automodule:: b_asic.signal_generator
:members:
:show-inheritance:
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