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
!136
Add WDF allpass generator
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add WDF allpass generator
wdfgenerator
into
master
Overview
0
Commits
1
Pipelines
6
Changes
7
Merged
Oscar Gustafsson
requested to merge
wdfgenerator
into
master
2 years ago
Overview
0
Commits
1
Pipelines
6
Changes
3
Expand
Closes
#156 (closed)
0
0
Merge request reports
Compare
version 3
version 5
4e2dff42
2 years ago
version 4
edf04f72
2 years ago
version 3
85c2817b
2 years ago
version 2
b84b3a2b
2 years ago
version 1
f1c01389
2 years ago
master (base)
and
version 4
latest version
99f37741
1 commit,
2 years ago
version 5
4e2dff42
1 commit,
2 years ago
version 4
edf04f72
1 commit,
2 years ago
version 3
85c2817b
1 commit,
2 years ago
version 2
b84b3a2b
1 commit,
2 years ago
version 1
f1c01389
1 commit,
2 years ago
Show latest version
3 files
+
39
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
b_asic/sfg_generator.py
+
31
−
1
Options
@@ -22,7 +22,37 @@ def wdf_allpass(
latency
:
Optional
[
int
]
=
None
,
latency_offsets
:
Optional
[
Dict
[
str
,
int
]]
=
None
,
execution_time
:
Optional
[
int
]
=
None
,
):
)
->
SFG
:
"""
Generate a signal flow graph of a WDF allpass section based on symmetric two-port adaptors.
Parameters
----------
coefficients : 1D-array
Coefficients to use for the allpass section
input_op : Input, optional
The Input to connect the SFG to. If not provided, one will be generated.
output : Output, optional
The Output to connect the SFG to. If not provided, one will be generated.
name : Name, optional
The name of the SFG. If None,
"
WDF allpass section
"
.
latency : int, optional
Latency of the symmetric two-port adaptors.
latency_offsets : optional
Latency offsets of the symmetric two-port adaptors.
execution_time : int, optional
Execution time of the symmetric two-port adaptors.
Returns
-------
Signal flow graph
"""
np
.
asarray
(
coefficients
)
coefficients
=
np
.
squeeze
(
coefficients
)
if
coefficients
.
ndim
!=
1
:
Loading