Skip to content
GitLab
Explore
Sign in
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
ec322aa6
Commit
ec322aa6
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added constants and record for MM rgeister of diag sequence tx/rx to diag_pkg.vhd.
parent
02096562
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libraries/base/diag/hdllib.cfg
+1
-1
1 addition, 1 deletion
libraries/base/diag/hdllib.cfg
libraries/base/diag/src/vhdl/diag_pkg.vhd
+21
-3
21 additions, 3 deletions
libraries/base/diag/src/vhdl/diag_pkg.vhd
with
22 additions
and
4 deletions
libraries/base/diag/hdllib.cfg
+
1
−
1
View file @
ec322aa6
...
@@ -9,7 +9,7 @@ build_dir_sim = $HDL_BUILD_DIR
...
@@ -9,7 +9,7 @@ build_dir_sim = $HDL_BUILD_DIR
build_dir_synth
=
$HDL_BUILD_DIR
build_dir_synth
=
$HDL_BUILD_DIR
synth_files
=
synth_files
=
$UNB/Firmware/modules/Lofar/diag/
src/vhdl/diag_pkg.vhd
src/vhdl/diag_pkg.vhd
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_bypass.vhd
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_bypass.vhd
src/vhdl/diag_tx_seq.vhd
src/vhdl/diag_tx_seq.vhd
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_tx_frm.vhd
$UNB/Firmware/modules/Lofar/diag/src/vhdl/diag_tx_frm.vhd
...
...
This diff is collapsed.
Click to expand it.
libraries/base/diag/src/vhdl/diag_pkg.vhd
+
21
−
3
View file @
ec322aa6
...
@@ -143,6 +143,27 @@ PACKAGE diag_pkg IS
...
@@ -143,6 +143,27 @@ PACKAGE diag_pkg IS
e_imag
e_imag
);
);
-----------------------------------------------------------------------------
-- CNTR / PSRG sequence test data
-----------------------------------------------------------------------------
CONSTANT
c_diag_seq_tx_reg_nof_dat
:
NATURAL
:
=
3
;
CONSTANT
c_diag_seq_tx_reg_adr_w
:
NATURAL
:
=
ceil_log2
(
c_diag_seq_tx_reg_nof_dat
);
CONSTANT
c_diag_seq_rx_reg_nof_dat
:
NATURAL
:
=
3
;
CONSTANT
c_diag_seq_rx_reg_adr_w
:
NATURAL
:
=
ceil_log2
(
c_diag_seq_rx_reg_nof_dat
);
-- Record with all diag seq MM register fields
TYPE
t_diag_seq_mm_reg
IS
RECORD
tx_init
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
-- readback ctrl
tx_ctrl
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
rx_ctrl
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
tx_cnt
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
-- read cnt and stat
rx_cnt
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
rx_stat
:
STD_LOGIC_VECTOR
(
c_word_w
-1
DOWNTO
0
);
END
RECORD
;
TYPE
t_diag_seq_mm_reg_arr
IS
ARRAY
(
INTEGER
RANGE
<>
)
OF
t_diag_seq_mm_reg
;
END
diag_pkg
;
END
diag_pkg
;
PACKAGE
BODY
diag_pkg
IS
PACKAGE
BODY
diag_pkg
IS
...
@@ -157,6 +178,3 @@ PACKAGE BODY diag_pkg IS
...
@@ -157,6 +178,3 @@ PACKAGE BODY diag_pkg IS
END
;
END
;
END
diag_pkg
;
END
diag_pkg
;
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