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
Merge requests
!168
Improve documentation for signal generators
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve documentation for signal generators
signalgeneratordocs
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Oscar Gustafsson
requested to merge
signalgeneratordocs
into
master
2 years ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
33e7d27d
1 commit,
2 years ago
2 files
+
13
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
b_asic/signal_generator.py
+
8
−
1
Options
@@ -2,11 +2,18 @@
@@ -2,11 +2,18 @@
B-ASIC signal generators
B-ASIC signal generators
These can be used as input to Simulation to algorithmically provide signal values.
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
math
import
pi
,
sin
from
numbers
import
Number
from
numbers
import
Number
from
typing
import
Callable
,
Sequence
from
typing
import
Sequence
class
SignalGenerator
:
class
SignalGenerator
:
Loading