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
ce6852b8
Commit
ce6852b8
authored
10 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Updated libraries to new RadioHDL libraries
parent
9c821e0b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/uniboard1/designs/unb1_fn_terminal_db/src/vhdl/node_unb1_fn_terminal_db.vhd
+20
-18
20 additions, 18 deletions
...unb1_fn_terminal_db/src/vhdl/node_unb1_fn_terminal_db.vhd
with
20 additions
and
18 deletions
boards/uniboard1/designs/unb1_fn_terminal_db/src/vhdl/node_unb1_fn_terminal_db.vhd
+
20
−
18
View file @
ce6852b8
...
@@ -123,15 +123,17 @@
...
@@ -123,15 +123,17 @@
-- advantage is that it
-- advantage is that it
LIBRARY
IEEE
,
common_lib
,
dp_lib
,
unb
_common
_lib
,
diag_lib
;
LIBRARY
IEEE
,
common_lib
,
dp_lib
,
unb
1_board
_lib
,
diag_lib
;
USE
IEEE
.
STD_LOGIC_1164
.
ALL
;
USE
IEEE
.
STD_LOGIC_1164
.
ALL
;
USE
IEEE
.
NUMERIC_STD
.
ALL
;
USE
IEEE
.
NUMERIC_STD
.
ALL
;
USE
common_lib
.
common_pkg
.
ALL
;
USE
common_lib
.
common_pkg
.
ALL
;
USE
common_lib
.
common_mem_pkg
.
ALL
;
USE
common_lib
.
common_mem_pkg
.
ALL
;
USE
dp_lib
.
dp_stream_pkg
.
ALL
;
USE
dp_lib
.
dp_stream_pkg
.
ALL
;
USE
unb_common_lib
.
unb_common_pkg
.
ALL
;
USE
unb1_board_lib
.
unb1_board_pkg
.
ALL
;
USE
unb1_board_lib
.
unb1_board_peripherals_pkg
.
ALL
;
ENTITY
node_fn_terminal_db
IS
ENTITY
node_unb1_fn_terminal_db
IS
GENERIC
(
GENERIC
(
g_sim
:
BOOLEAN
:
=
FALSE
;
g_sim
:
BOOLEAN
:
=
FALSE
;
g_sim_level
:
NATURAL
:
=
0
;
-- 0 = simulate GX IP, 1 = use fast serial behavioural model
g_sim_level
:
NATURAL
:
=
0
;
-- 0 = simulate GX IP, 1 = use fast serial behavioural model
...
@@ -153,7 +155,7 @@ ENTITY node_fn_terminal_db IS
...
@@ -153,7 +155,7 @@ ENTITY node_fn_terminal_db IS
g_mesh_mon_nof_words
:
NATURAL
:
=
1024
;
g_mesh_mon_nof_words
:
NATURAL
:
=
1024
;
g_mesh_mon_use_sync
:
BOOLEAN
:
=
TRUE
;
g_mesh_mon_use_sync
:
BOOLEAN
:
=
TRUE
;
-- Auxiliary Interface
-- Auxiliary Interface
g_aux
:
t_c_unb_aux
:
=
c_unb_aux
g_aux
:
t_c_unb
1_board
_aux
:
=
c_unb
1_board
_aux
);
);
PORT
(
PORT
(
-- System
-- System
...
@@ -190,12 +192,12 @@ ENTITY node_fn_terminal_db IS
...
@@ -190,12 +192,12 @@ ENTITY node_fn_terminal_db IS
dp_out_siso_arr
:
IN
t_dp_siso_arr
(
g_usr_nof_streams
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
c_dp_siso_rdy
);
dp_out_siso_arr
:
IN
t_dp_siso_arr
(
g_usr_nof_streams
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
c_dp_siso_rdy
);
-- Mesh serial interface (tr_nonbonded)
-- Mesh serial interface (tr_nonbonded)
tx_serial_2arr
:
OUT
t_unb_mesh_sl_2arr
;
-- Tx
tx_serial_2arr
:
OUT
t_unb
1_board
_mesh_sl_2arr
;
-- Tx
rx_serial_2arr
:
IN
t_unb_mesh_sl_2arr
:
=
(
OTHERS
=>
(
OTHERS
=>
'0'
))
-- Rx support for diagnostics
rx_serial_2arr
:
IN
t_unb
1_board
_mesh_sl_2arr
:
=
(
OTHERS
=>
(
OTHERS
=>
'0'
))
-- Rx support for diagnostics
);
);
END
node_fn_terminal_db
;
END
node_
unb1_
fn_terminal_db
;
ARCHITECTURE
str
OF
node_fn_terminal_db
IS
ARCHITECTURE
str
OF
node_
unb1_
fn_terminal_db
IS
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- BSN align
-- BSN align
...
@@ -209,7 +211,7 @@ ARCHITECTURE str OF node_fn_terminal_db IS
...
@@ -209,7 +211,7 @@ ARCHITECTURE str OF node_fn_terminal_db IS
-- Terminals
-- Terminals
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
CONSTANT
c_usr_nof_streams_per_bus
:
NATURAL
:
=
g_usr_nof_streams
/
c_unb_nof_bn
;
-- 16 / 4 = 4
CONSTANT
c_usr_nof_streams_per_bus
:
NATURAL
:
=
g_usr_nof_streams
/
c_unb
1_board
_nof_bn
;
-- 16 / 4 = 4
-- . tr_nonbonded rx fifo
-- . tr_nonbonded rx fifo
CONSTANT
c_burst_phy_nof_block
:
NATURAL
:
=
c_usr_nof_streams_per_bus
;
-- burst of 4 usr blocks per t0 per phy lane
CONSTANT
c_burst_phy_nof_block
:
NATURAL
:
=
c_usr_nof_streams_per_bus
;
-- burst of 4 usr blocks per t0 per phy lane
...
@@ -229,11 +231,11 @@ ARCHITECTURE str OF node_fn_terminal_db IS
...
@@ -229,11 +231,11 @@ ARCHITECTURE str OF node_fn_terminal_db IS
CONSTANT
c_sop_timeout
:
NATURAL
:
=
(
c_burst_bsn_latency
+
1
)
*
g_usr_block_per
;
-- wait for sop for some block periods
CONSTANT
c_sop_timeout
:
NATURAL
:
=
(
c_burst_bsn_latency
+
1
)
*
g_usr_block_per
;
-- wait for sop for some block periods
CONSTANT
c_xoff_timeout
:
NATURAL
:
=
c_burst_bsn_latency
*
2
*
g_usr_block_per
;
CONSTANT
c_xoff_timeout
:
NATURAL
:
=
c_burst_bsn_latency
*
2
*
g_usr_block_per
;
SIGNAL
rx_usr_siso_2arr
:
t_unb_mesh_siso_2arr
;
SIGNAL
rx_usr_siso_2arr
:
t_unb
1_board
_mesh_siso_2arr
;
SIGNAL
rx_usr_sosi_2arr
:
t_unb_mesh_sosi_2arr
;
SIGNAL
rx_usr_sosi_2arr
:
t_unb
1_board
_mesh_sosi_2arr
;
SIGNAL
rx_rew_siso_2arr
:
t_unb_mesh_siso_2arr
;
SIGNAL
rx_rew_siso_2arr
:
t_unb
1_board
_mesh_siso_2arr
;
SIGNAL
rx_rew_sosi_2arr
:
t_unb_mesh_sosi_2arr
;
SIGNAL
rx_rew_sosi_2arr
:
t_unb
1_board
_mesh_sosi_2arr
;
SIGNAL
rx_usr_siso_arr
:
t_dp_siso_arr
(
g_usr_nof_streams
-1
DOWNTO
0
);
SIGNAL
rx_usr_siso_arr
:
t_dp_siso_arr
(
g_usr_nof_streams
-1
DOWNTO
0
);
SIGNAL
rx_usr_sosi_arr
:
t_dp_sosi_arr
(
g_usr_nof_streams
-1
DOWNTO
0
);
SIGNAL
rx_usr_sosi_arr
:
t_dp_sosi_arr
(
g_usr_nof_streams
-1
DOWNTO
0
);
...
@@ -250,13 +252,13 @@ BEGIN
...
@@ -250,13 +252,13 @@ BEGIN
-- Terminals
-- Terminals
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
u_terminals_mesh
:
ENTITY
unb
_common
_lib
.
unb_terminals_mesh
u_terminals_mesh
:
ENTITY
unb
1_board
_lib
.
unb
1_board
_terminals_mesh
GENERIC
MAP
(
GENERIC
MAP
(
g_sim
=>
g_sim
,
g_sim
=>
g_sim
,
g_sim_level
=>
g_sim_level
,
g_sim_level
=>
g_sim_level
,
-- System
-- System
g_node_type
=>
e_fn
,
g_node_type
=>
e_fn
,
g_nof_bus
=>
c_unb_nof_bn
,
-- 4 to 4 nodes in mesh
g_nof_bus
=>
c_unb
1_board
_nof_bn
,
-- 4 to 4 nodes in mesh
-- User
-- User
g_usr_use_complex
=>
TRUE
,
g_usr_use_complex
=>
TRUE
,
g_usr_data_w
=>
g_usr_data_w
,
g_usr_data_w
=>
g_usr_data_w
,
...
@@ -322,14 +324,14 @@ BEGIN
...
@@ -322,14 +324,14 @@ BEGIN
END
GENERATE
;
END
GENERATE
;
gen_multi_unb
:
IF
g_multi_unb
=
TRUE
GENERATE
gen_multi_unb
:
IF
g_multi_unb
=
TRUE
GENERATE
rx_rew_sosi_2arr
<=
func_unb_transpose_2arr
(
rx_usr_sosi_2arr
);
rx_rew_sosi_2arr
<=
func_unb
1_board
_transpose_2arr
(
rx_usr_sosi_2arr
);
rx_usr_siso_2arr
<=
func_unb_transpose_2arr
(
rx_rew_siso_2arr
);
rx_usr_siso_2arr
<=
func_unb
1_board
_transpose_2arr
(
rx_rew_siso_2arr
);
END
GENERATE
;
END
GENERATE
;
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
-- From 2d to 1d array
-- From 2d to 1d array
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
gen_i
:
FOR
I
IN
0
TO
c_unb_nof_bn
-1
GENERATE
gen_i
:
FOR
I
IN
0
TO
c_unb
1_board
_nof_bn
-1
GENERATE
gen_j
:
FOR
J
IN
0
TO
c_usr_nof_streams_per_bus
-1
GENERATE
gen_j
:
FOR
J
IN
0
TO
c_usr_nof_streams_per_bus
-1
GENERATE
rx_rew_siso_2arr
(
I
)(
J
)
<=
rx_usr_siso_arr
(
I
*
c_usr_nof_streams_per_bus
+
J
);
rx_rew_siso_2arr
(
I
)(
J
)
<=
rx_usr_siso_arr
(
I
*
c_usr_nof_streams_per_bus
+
J
);
rx_usr_sosi_arr
(
I
*
c_usr_nof_streams_per_bus
+
J
)
<=
rx_rew_sosi_2arr
(
I
)(
J
);
rx_usr_sosi_arr
(
I
*
c_usr_nof_streams_per_bus
+
J
)
<=
rx_rew_sosi_2arr
(
I
)(
J
);
...
...
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