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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
a5ebe619
Commit
a5ebe619
authored
2 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Verify g_nof_samples_per_packet = 2, g_nof_blocks_per_sync = 1, g_gapsize = 0, 1.
parent
4380ebfe
No related branches found
No related tags found
1 merge request
!297
Resolve L2SDP-837 "B"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/diag/tb/vhdl/tb_diag_block_gen.vhd
+8
-7
8 additions, 7 deletions
libraries/base/diag/tb/vhdl/tb_diag_block_gen.vhd
libraries/base/diag/tb/vhdl/tb_tb_diag_block_gen.vhd
+8
-3
8 additions, 3 deletions
libraries/base/diag/tb/vhdl/tb_tb_diag_block_gen.vhd
with
16 additions
and
10 deletions
libraries/base/diag/tb/vhdl/tb_diag_block_gen.vhd
+
8
−
7
View file @
a5ebe619
...
...
@@ -45,6 +45,9 @@ ENTITY tb_diag_block_gen IS
-- general
g_flow_control_verify
:
t_dp_flow_control_enum
:
=
e_active
;
-- always active, random or pulse flow control
-- specific
g_nof_samples_per_packet
:
NATURAL
:
=
2
;
-- >= 2
g_nof_blocks_per_sync
:
NATURAL
:
=
10
;
-- >= 1
g_gapsize
:
NATURAL
:
=
32
;
-- >= 0
g_buf_adr_w
:
NATURAL
:
=
7
;
-- Waveform buffer address width (requires corresponding c_buf_file)
g_buf_dat_w
:
NATURAL
:
=
32
;
-- Waveform buffer stored data width (requires corresponding c_buf_file)
g_try_phasor
:
BOOLEAN
:
=
FALSE
-- use TRUE to see BG phasor in wave window with out_sosi.re/im in radix
...
...
@@ -92,17 +95,15 @@ ARCHITECTURE tb OF tb_diag_block_gen IS
-- Default BG control
CONSTANT
c_bg_ctrl
:
t_diag_block_gen
:
=
(
'0'
,
'0'
,
TO_UVEC
(
96
,
c_diag_bg_samples_per_packet_w
),
TO_UVEC
(
10
,
c_diag_bg_blocks_per_sync_w
),
TO_UVEC
(
32
,
c_diag_bg_gapsize_w
),
TO_UVEC
(
g_nof_samples_per_packet
,
c_diag_bg_samples_per_packet_w
),
TO_UVEC
(
g_nof_blocks_per_sync
,
c_diag_bg_blocks_per_sync_w
),
TO_UVEC
(
g_gapsize
,
c_diag_bg_gapsize_w
),
TO_UVEC
(
0
,
c_diag_bg_mem_low_adrs_w
),
TO_UVEC
(
95
,
c_diag_bg_mem_high_adrs_w
),
TO_UVEC
(
42
,
c_diag_bg_bsn_init_w
));
CONSTANT
c_bg_period
:
NATURAL
:
=
TO_UINT
(
c_bg_ctrl
.
samples_per_packet
)
+
TO_UINT
(
c_bg_ctrl
.
gapsize
);
-- Some alternative BG control settings
CONSTANT
c_more_samples_per_packet
:
NATURAL
:
=
c_buf
.
nof_dat
;
CONSTANT
c_less_samples_per_packet
:
NATURAL
:
=
5
;
CONSTANT
c_alternative_mem_low_adrs
:
NATURAL
:
=
1
;
CONSTANT
c_alternative_mem_high_adrs
:
NATURAL
:
=
64
;
CONSTANT
c_alternative_data_gap
:
NATURAL
:
=
1
+
c_alternative_mem_low_adrs
;
...
...
@@ -111,7 +112,7 @@ ARCHITECTURE tb OF tb_diag_block_gen IS
CONSTANT
c_bg_ctrl2
:
t_diag_block_gen
:
=
(
'0'
,
'0'
,
TO_UVEC
(
17
,
c_diag_bg_samples_per_packet_w
),
TO_UVEC
(
10
,
c_diag_bg_blocks_per_sync_w
),
TO_UVEC
(
g_nof_blocks_per_sync
,
c_diag_bg_blocks_per_sync_w
),
TO_UVEC
(
0
,
c_diag_bg_gapsize_w
),
TO_UVEC
(
0
,
c_diag_bg_mem_low_adrs_w
),
TO_UVEC
(
16
,
c_diag_bg_mem_high_adrs_w
),
...
...
@@ -142,7 +143,7 @@ ARCHITECTURE tb OF tb_diag_block_gen IS
SIGNAL
out_siso
:
t_dp_siso
;
SIGNAL
out_sosi
:
t_dp_sosi
;
SIGNAL
prev_out_sosi
:
t_dp_sosi
;
SIGNAL
hold_sop
:
STD_LOGIC
;
SIGNAL
hold_sop
:
STD_LOGIC
:
=
'0'
;
SIGNAL
last_size
:
NATURAL
;
SIGNAL
exp_size
:
NATURAL
;
SIGNAL
cnt_size
:
NATURAL
;
...
...
This diff is collapsed.
Click to expand it.
libraries/base/diag/tb/vhdl/tb_tb_diag_block_gen.vhd
+
8
−
3
View file @
a5ebe619
...
...
@@ -45,12 +45,17 @@ BEGIN
-- -- general
-- g_flow_control_verify : t_dp_flow_control_enum := e_active; -- always active, random or pulse flow control
-- -- specific
-- g_nof_samples_per_packet : NATURAL := 96;
-- g_nof_blocks_per_sync : NATURAL := 10;
-- g_gapsize : NATURAL := 32; -- >= 0
-- g_buf_adr_w : NATURAL := 7; -- Waveform buffer address width (requires corresponding c_buf_file)
-- g_buf_dat_w : NATURAL := 32 -- Waveform buffer stored data width (requires corresponding c_buf_file)
-- g_try_phasor : BOOLEAN := FALSE -- use TRUE to see BG phasor in wave window with out_sosi.re/im in radix
-- decimal and analogue format, no self test
u_bg
:
ENTITY
work
.
tb_diag_block_gen
GENERIC
MAP
(
e_active
,
7
,
32
,
FALSE
);
u_bg_ready
:
ENTITY
work
.
tb_diag_block_gen
GENERIC
MAP
(
e_random
,
7
,
32
,
FALSE
);
u_bg
:
ENTITY
work
.
tb_diag_block_gen
GENERIC
MAP
(
e_active
,
96
,
10
,
32
,
7
,
32
,
FALSE
);
u_bg_ready
:
ENTITY
work
.
tb_diag_block_gen
GENERIC
MAP
(
e_random
,
96
,
10
,
32
,
7
,
32
,
FALSE
);
u_bg_minimal_gap_0
:
ENTITY
work
.
tb_diag_block_gen
GENERIC
MAP
(
e_active
,
2
,
1
,
0
,
7
,
32
,
FALSE
);
u_bg_minimal_gap_1
:
ENTITY
work
.
tb_diag_block_gen
GENERIC
MAP
(
e_active
,
2
,
1
,
1
,
7
,
32
,
FALSE
);
END
tb
;
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