Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
eea34f0a
Commit
eea34f0a
authored
8 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Forces disbaled inputs to zeros instead of ones
parent
fd13e86f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/dp/src/vhdl/dp_bsn_align.vhd
+3
-3
3 additions, 3 deletions
libraries/base/dp/src/vhdl/dp_bsn_align.vhd
with
3 additions
and
3 deletions
libraries/base/dp/src/vhdl/dp_bsn_align.vhd
+
3
−
3
View file @
eea34f0a
...
@@ -372,7 +372,7 @@ BEGIN
...
@@ -372,7 +372,7 @@ BEGIN
VARIABLE
v_siso_arr_src
:
t_dp_siso_arr
(
g_nof_input
-1
DOWNTO
0
);
VARIABLE
v_siso_arr_src
:
t_dp_siso_arr
(
g_nof_input
-1
DOWNTO
0
);
VARIABLE
v_sosi_arr
:
t_dp_sosi_arr
(
g_nof_input
-1
DOWNTO
0
);
-- auxiliary sosi variable
VARIABLE
v_sosi_arr
:
t_dp_sosi_arr
(
g_nof_input
-1
DOWNTO
0
);
-- auxiliary sosi variable
VARIABLE
v_blk_buf
:
t_dp_sosi
;
-- auxiliary sosi variable
VARIABLE
v_blk_buf
:
t_dp_sosi
;
-- auxiliary sosi variable
CONSTANT
c_init_all_
ones
:
STD_LOGIC_VECTOR
(
c_dp_stream_dsp_data_w
-1
DOWNTO
0
)
:
=
array_init
(
'
1
'
,
c_dp_stream_dsp_data_w
);
CONSTANT
c_init_all_
zeros
:
STD_LOGIC_VECTOR
(
c_dp_stream_dsp_data_w
-1
DOWNTO
0
)
:
=
array_init
(
'
0
'
,
c_dp_stream_dsp_data_w
);
BEGIN
BEGIN
-- default semi-constant v_siso_arr controls taking account of the dynamic r.in_en_arr
-- default semi-constant v_siso_arr controls taking account of the dynamic r.in_en_arr
v_siso_arr_hold
:
=
func_dp_stream_arr_select
(
r
.
in_en_arr
,
c_dp_siso_hold
,
c_dp_siso_flush
);
v_siso_arr_hold
:
=
func_dp_stream_arr_select
(
r
.
in_en_arr
,
c_dp_siso_hold
,
c_dp_siso_flush
);
...
@@ -446,7 +446,7 @@ BEGIN
...
@@ -446,7 +446,7 @@ BEGIN
v_sosi_arr
:
=
func_dp_stream_arr_select
(
r
.
in_en_arr
,
next_src_buf_arr
,
v_sosi_arr
);
v_sosi_arr
:
=
func_dp_stream_arr_select
(
r
.
in_en_arr
,
next_src_buf_arr
,
v_sosi_arr
);
v_sosi_arr
:
=
func_dp_stream_arr_set_control
(
v_sosi_arr
,
v_blk_buf
);
v_sosi_arr
:
=
func_dp_stream_arr_set_control
(
v_sosi_arr
,
v_blk_buf
);
v_sosi_arr
:
=
func_dp_stream_arr_copy_valid_bsn
(
v_sosi_arr
,
r
.
in_en_arr
);
-- Copy the BSN of one of the valid streams to all other streams
v_sosi_arr
:
=
func_dp_stream_arr_copy_valid_bsn
(
v_sosi_arr
,
r
.
in_en_arr
);
-- Copy the BSN of one of the valid streams to all other streams
v_sosi_arr
:
=
func_dp_stream_set_data
(
v_sosi_arr
,
c_init_all_
one
s
,
"ALL"
,
r
.
in_en_arr
);
-- Fill the RE and IM fields of the disabled channels with ones.
v_sosi_arr
:
=
func_dp_stream_set_data
(
v_sosi_arr
,
c_init_all_
zero
s
,
"ALL"
,
r
.
in_en_arr
);
-- Fill the RE and IM fields of the disabled channels with ones.
nxt_r
.
src_out_arr
<=
v_sosi_arr
;
nxt_r
.
src_out_arr
<=
v_sosi_arr
;
-- <<< End of same code as in s_data
-- <<< End of same code as in s_data
...
@@ -488,7 +488,7 @@ BEGIN
...
@@ -488,7 +488,7 @@ BEGIN
v_sosi_arr
:
=
func_dp_stream_arr_select
(
r
.
in_en_arr
,
next_src_buf_arr
,
v_sosi_arr
);
-- output the pending input frame of all enabled user inputs
v_sosi_arr
:
=
func_dp_stream_arr_select
(
r
.
in_en_arr
,
next_src_buf_arr
,
v_sosi_arr
);
-- output the pending input frame of all enabled user inputs
v_sosi_arr
:
=
func_dp_stream_arr_set_control
(
v_sosi_arr
,
v_blk_buf
);
-- use the same reference block sosi control for all outputs
v_sosi_arr
:
=
func_dp_stream_arr_set_control
(
v_sosi_arr
,
v_blk_buf
);
-- use the same reference block sosi control for all outputs
v_sosi_arr
:
=
func_dp_stream_arr_copy_valid_bsn
(
v_sosi_arr
,
r
.
in_en_arr
);
-- Copy the BSN of one of the valid streams to all other streams
v_sosi_arr
:
=
func_dp_stream_arr_copy_valid_bsn
(
v_sosi_arr
,
r
.
in_en_arr
);
-- Copy the BSN of one of the valid streams to all other streams
v_sosi_arr
:
=
func_dp_stream_set_data
(
v_sosi_arr
,
c_init_all_
one
s
,
"ALL"
,
r
.
in_en_arr
);
-- Fill the RE and IM fields of the disabled channels with ones.
v_sosi_arr
:
=
func_dp_stream_set_data
(
v_sosi_arr
,
c_init_all_
zero
s
,
"ALL"
,
r
.
in_en_arr
);
-- Fill the RE and IM fields of the disabled channels with ones.
nxt_r
.
src_out_arr
<=
v_sosi_arr
;
nxt_r
.
src_out_arr
<=
v_sosi_arr
;
-- at end of every block
-- at end of every block
...
...
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