Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
db140cf4
Commit
db140cf4
authored
Jul 20, 2022
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsp/gc_soft_ramp_switch: added immediate kill/squelch output control signal
parent
34d51acc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
gc_soft_ramp_switch.vhd
modules/dsp/gc_soft_ramp_switch.vhd
+7
-2
No files found.
modules/dsp/gc_soft_ramp_switch.vhd
View file @
db140cf4
...
...
@@ -20,6 +20,7 @@ entity gc_soft_ramp_switch is
rate_i
:
in
std_logic_vector
(
15
downto
0
);
on_i
:
in
std_logic
;
kill_i
:
in
std_logic
;
is_on_o
:
out
std_logic
;
is_off_o
:
out
std_logic
;
...
...
@@ -68,7 +69,7 @@ begin
p_switch
:
process
(
clk_i
)
begin
if
rising_edge
(
clk_i
)
then
if
rst_i
=
'1'
then
if
rst_i
=
'1'
or
kill_i
=
'1'
then
state
<=
SW_OFF
;
ramp_integ
<=
(
others
=>
'0'
);
is_off_o
<=
'1'
;
...
...
@@ -139,7 +140,11 @@ begin
y_valid_o
<=
x_valid_i
;
for
i
in
0
to
g_NUM_CHANNELS
loop
yo
(
i
)
<=
f_mul_sar
(
xi
(
i
),
mulf
,
g_DATA_BITS
);
if
kill_i
=
'0'
then
yo
(
i
)
<=
f_mul_sar
(
xi
(
i
),
mulf
,
g_DATA_BITS
);
else
yo
(
i
)
<=
(
others
=>
'0'
);
end
if
;
end
loop
;
end
if
;
end
if
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment