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
18c1d462
Commit
18c1d462
authored
9 years ago
by
Kenneth Hiemstra
Browse files
Options
Downloads
Patches
Plain Diff
added reg_fpga_sens_* mm
parent
848bf857
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/uniboard2/designs/unb2_test/src/vhdl/mmm_unb2_test.vhd
+26
-9
26 additions, 9 deletions
...ds/uniboard2/designs/unb2_test/src/vhdl/mmm_unb2_test.vhd
boards/uniboard2/designs/unb2_test/src/vhdl/unb2_test.vhd
+17
-6
17 additions, 6 deletions
boards/uniboard2/designs/unb2_test/src/vhdl/unb2_test.vhd
with
43 additions
and
15 deletions
boards/uniboard2/designs/unb2_test/src/vhdl/mmm_unb2_test.vhd
+
26
−
9
View file @
18c1d462
...
@@ -76,6 +76,9 @@ ENTITY mmm_unb2_test IS
...
@@ -76,6 +76,9 @@ ENTITY mmm_unb2_test IS
reg_unb_sens_mosi
:
OUT
t_mem_mosi
;
reg_unb_sens_mosi
:
OUT
t_mem_mosi
;
reg_unb_sens_miso
:
IN
t_mem_miso
;
reg_unb_sens_miso
:
IN
t_mem_miso
;
reg_fpga_sens_mosi
:
OUT
t_mem_mosi
;
reg_fpga_sens_miso
:
IN
t_mem_miso
;
-- PPSH
-- PPSH
reg_ppsh_mosi
:
OUT
t_mem_mosi
;
reg_ppsh_mosi
:
OUT
t_mem_mosi
;
reg_ppsh_miso
:
IN
t_mem_miso
;
reg_ppsh_miso
:
IN
t_mem_miso
;
...
@@ -265,9 +268,12 @@ ARCHITECTURE str OF mmm_unb2_test IS
...
@@ -265,9 +268,12 @@ ARCHITECTURE str OF mmm_unb2_test IS
SIGNAL
sim_eth_mm_bus_switch
:
STD_LOGIC
;
SIGNAL
sim_eth_mm_bus_switch
:
STD_LOGIC
;
SIGNAL
sim_eth_psc_access
:
STD_LOGIC
;
SIGNAL
sim_eth_psc_access
:
STD_LOGIC
;
SIGNAL
i_eth1g_eth0_reg_mosi
:
t_mem_mosi
;
SIGNAL
i_eth1g_eth0_reg_miso
:
t_mem_miso
;
SIGNAL
i_eth1g_eth1_reg_mosi
:
t_mem_mosi
;
SIGNAL
i_eth1g_eth1_reg_mosi
:
t_mem_mosi
;
SIGNAL
i_eth1g_eth1_reg_miso
:
t_mem_miso
;
SIGNAL
i_eth1g_eth1_reg_miso
:
t_mem_miso
;
SIGNAL
sim_eth1g_eth0_reg_mosi
:
t_mem_mosi
;
SIGNAL
sim_eth1g_eth1_reg_mosi
:
t_mem_mosi
;
SIGNAL
sim_eth1g_eth1_reg_mosi
:
t_mem_mosi
;
SIGNAL
i_reset_n
:
STD_LOGIC
;
SIGNAL
i_reset_n
:
STD_LOGIC
;
...
@@ -310,6 +316,9 @@ BEGIN
...
@@ -310,6 +316,9 @@ BEGIN
u_mm_file_reg_unb_sens
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"REG_UNB_SENS"
)
u_mm_file_reg_unb_sens
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"REG_UNB_SENS"
)
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_unb_sens_mosi
,
reg_unb_sens_miso
);
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_unb_sens_mosi
,
reg_unb_sens_miso
);
u_mm_file_reg_fpga_sens
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"REG_FPGA_SENS"
)
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_fpga_sens_mosi
,
reg_fpga_sens_miso
);
u_mm_file_reg_ppsh
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"PIO_PPS"
)
u_mm_file_reg_ppsh
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"PIO_PPS"
)
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_ppsh_mosi
,
reg_ppsh_miso
);
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_ppsh_mosi
,
reg_ppsh_miso
);
...
@@ -379,9 +388,9 @@ BEGIN
...
@@ -379,9 +388,9 @@ BEGIN
-- Note: the eth1g RAM and TSE buses are only required by unb_osy on the NIOS as they provide the ethernet<->MM gateway.
-- Note: the eth1g RAM and TSE buses are only required by unb_osy on the NIOS as they provide the ethernet<->MM gateway.
u_mm_file_reg_eth0
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"AVS_ETH_0_MMS_REG"
)
u_mm_file_reg_eth0
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"AVS_ETH_0_MMS_REG"
)
PORT
MAP
(
mm_rst
,
mm_clk
,
eth1g_eth0_reg_mosi
,
eth1g_eth0_reg_miso
);
PORT
MAP
(
mm_rst
,
mm_clk
,
i_
eth1g_eth0_reg_mosi
,
eth1g_eth0_reg_miso
);
u_mm_file_reg_eth1
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"AVS_ETH_1_MMS_REG"
)
u_mm_file_reg_eth1
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"AVS_ETH_1_MMS_REG"
)
PORT
MAP
(
mm_rst
,
mm_clk
,
eth1g_eth1_reg_mosi
,
eth1g_eth1_reg_miso
);
PORT
MAP
(
mm_rst
,
mm_clk
,
i_
eth1g_eth1_reg_mosi
,
eth1g_eth1_reg_miso
);
u_mm_file_reg_tr_10GbE_qsfp_ring
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"REG_TR_10GBE_QSFP_RING"
)
u_mm_file_reg_tr_10GbE_qsfp_ring
:
mm_file
GENERIC
MAP
(
mmf_unb_file_prefix
(
g_sim_unb_nr
,
c_sim_node_nr
,
c_sim_node_type
)
&
"REG_TR_10GBE_QSFP_RING"
)
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_tr_10GbE_qsfp_ring_mosi
,
reg_tr_10GbE_qsfp_ring_miso
);
PORT
MAP
(
mm_rst
,
mm_clk
,
reg_tr_10GbE_qsfp_ring_mosi
,
reg_tr_10GbE_qsfp_ring_miso
);
...
@@ -404,25 +413,25 @@ BEGIN
...
@@ -404,25 +413,25 @@ BEGIN
BEGIN
BEGIN
sim_eth_mm_bus_switch
<=
'1'
;
sim_eth_mm_bus_switch
<=
'1'
;
eth1g_eth
1
_tse_mosi
.
wr
<=
'0'
;
eth1g_eth
0
_tse_mosi
.
wr
<=
'0'
;
eth1g_eth
1
_tse_mosi
.
rd
<=
'0'
;
eth1g_eth
0
_tse_mosi
.
rd
<=
'0'
;
WAIT
FOR
400
ns
;
WAIT
FOR
400
ns
;
WAIT
UNTIL
rising_edge
(
mm_clk
);
WAIT
UNTIL
rising_edge
(
mm_clk
);
proc_tech_tse_setup
(
c_tech_arria10
,
FALSE
,
c_tech_tse_tx_fifo_depth
,
c_tech_tse_rx_fifo_depth
,
c_tech_tse_tx_ready_latency
,
c_sim_eth_src_mac
,
sim_eth_psc_access
,
mm_clk
,
eth1g_eth
1
_tse_miso
,
eth1g_eth
1
_tse_mosi
);
proc_tech_tse_setup
(
c_tech_arria10
,
FALSE
,
c_tech_tse_tx_fifo_depth
,
c_tech_tse_rx_fifo_depth
,
c_tech_tse_tx_ready_latency
,
c_sim_eth_src_mac
,
sim_eth_psc_access
,
mm_clk
,
eth1g_eth
0
_tse_miso
,
eth1g_eth
0
_tse_mosi
);
-- Enable RX
-- Enable RX
proc_mem_mm_bus_wr
(
c_eth_reg_control_wi
+
0
,
c_sim_eth_control_rx_en
,
mm_clk
,
eth1g_eth
1
_reg_miso
,
sim_eth1g_eth
1
_reg_mosi
);
-- control rx en
proc_mem_mm_bus_wr
(
c_eth_reg_control_wi
+
0
,
c_sim_eth_control_rx_en
,
mm_clk
,
eth1g_eth
0
_reg_miso
,
sim_eth1g_eth
0
_reg_mosi
);
-- control rx en
sim_eth_mm_bus_switch
<=
'0'
;
sim_eth_mm_bus_switch
<=
'0'
;
WAIT
;
WAIT
;
END
PROCESS
;
END
PROCESS
;
p_switch
:
PROCESS
(
sim_eth_mm_bus_switch
,
sim_eth1g_eth
1
_reg_mosi
,
i_eth1g_eth
1
_reg_mosi
)
p_switch
:
PROCESS
(
sim_eth_mm_bus_switch
,
sim_eth1g_eth
0
_reg_mosi
,
i_eth1g_eth
0
_reg_mosi
)
BEGIN
BEGIN
IF
sim_eth_mm_bus_switch
=
'1'
THEN
IF
sim_eth_mm_bus_switch
=
'1'
THEN
eth1g_eth
1
_reg_mosi
<=
sim_eth1g_eth
1
_reg_mosi
;
eth1g_eth
0
_reg_mosi
<=
sim_eth1g_eth
0
_reg_mosi
;
ELSE
ELSE
eth1g_eth
1
_reg_mosi
<=
i_eth1g_eth
1
_reg_mosi
;
eth1g_eth
0
_reg_mosi
<=
i_eth1g_eth
0
_reg_mosi
;
END
IF
;
END
IF
;
END
PROCESS
;
END
PROCESS
;
...
@@ -498,6 +507,14 @@ BEGIN
...
@@ -498,6 +507,14 @@ BEGIN
reg_unb_sens_read_export
=>
reg_unb_sens_mosi
.
rd
,
reg_unb_sens_read_export
=>
reg_unb_sens_mosi
.
rd
,
reg_unb_sens_readdata_export
=>
reg_unb_sens_miso
.
rddata
(
c_word_w
-1
DOWNTO
0
),
reg_unb_sens_readdata_export
=>
reg_unb_sens_miso
.
rddata
(
c_word_w
-1
DOWNTO
0
),
reg_fpga_sens_reset_export
=>
OPEN
,
reg_fpga_sens_clk_export
=>
OPEN
,
reg_fpga_sens_address_export
=>
reg_fpga_sens_mosi
.
address
(
c_unb2_board_peripherals_mm_reg_default
.
reg_fpga_sens_adr_w
-1
DOWNTO
0
),
reg_fpga_sens_write_export
=>
reg_fpga_sens_mosi
.
wr
,
reg_fpga_sens_writedata_export
=>
reg_fpga_sens_mosi
.
wrdata
(
c_word_w
-1
DOWNTO
0
),
reg_fpga_sens_read_export
=>
reg_fpga_sens_mosi
.
rd
,
reg_fpga_sens_readdata_export
=>
reg_fpga_sens_miso
.
rddata
(
c_word_w
-1
DOWNTO
0
),
rom_system_info_reset_export
=>
OPEN
,
rom_system_info_reset_export
=>
OPEN
,
rom_system_info_clk_export
=>
OPEN
,
rom_system_info_clk_export
=>
OPEN
,
rom_system_info_address_export
=>
rom_unb_system_info_mosi
.
address
(
c_unb2_board_peripherals_mm_reg_default
.
rom_unb_system_info_adr_w
-1
DOWNTO
0
),
rom_system_info_address_export
=>
rom_unb_system_info_mosi
.
address
(
c_unb2_board_peripherals_mm_reg_default
.
rom_unb_system_info_adr_w
-1
DOWNTO
0
),
...
...
This diff is collapsed.
Click to expand it.
boards/uniboard2/designs/unb2_test/src/vhdl/unb2_test.vhd
+
17
−
6
View file @
18c1d462
...
@@ -189,11 +189,12 @@ ARCHITECTURE str OF unb2_test IS
...
@@ -189,11 +189,12 @@ ARCHITECTURE str OF unb2_test IS
-- Block generator constants
-- Block generator constants
CONSTANT
c_bg_block_size
:
NATURAL
:
=
900
;
CONSTANT
c_bg_block_size
:
NATURAL
:
=
900
;
CONSTANT
c_bg_gapsize
:
NATURAL
:
=
100
;
CONSTANT
c_bg_gapsize_1GbE
:
NATURAL
:
=
1000
;
CONSTANT
c_bg_gapsize_10GbE
:
NATURAL
:
=
100
;
CONSTANT
c_bg_blocks_per_sync
:
NATURAL
:
=
sel_a_b
(
g_sim
,
10
,
200000
);
-- 200000*(900+100) = 200000000 cycles = 1 second
CONSTANT
c_bg_blocks_per_sync
:
NATURAL
:
=
sel_a_b
(
g_sim
,
10
,
200000
);
-- 200000*(900+100) = 200000000 cycles = 1 second
CONSTANT
c_use_jumbo_frames
:
BOOLEAN
:
=
FALSE
;
CONSTANT
c_use_jumbo_frames
:
BOOLEAN
:
=
FALSE
;
CONSTANT
c_def_1GbE_block_size
:
NATURAL
:
=
0
;
-- 0 first so we have time to set RX demux reg in dest. node
CONSTANT
c_def_1GbE_block_size
:
NATURAL
:
=
2
0
;
-- 0 first so we have time to set RX demux reg in dest. node
CONSTANT
c_def_10GbE_block_size
:
NATURAL
:
=
700
;
-- (700/1000) * 200MHz * 64b = 8.96Gbps user rate (excl. header overhead (16 words/packet) )
CONSTANT
c_def_10GbE_block_size
:
NATURAL
:
=
700
;
-- (700/1000) * 200MHz * 64b = 8.96Gbps user rate (excl. header overhead (16 words/packet) )
CONSTANT
c_max_frame_len
:
NATURAL
:
=
sel_a_b
(
c_use_jumbo_frames
,
9018
,
1518
);
CONSTANT
c_max_frame_len
:
NATURAL
:
=
sel_a_b
(
c_use_jumbo_frames
,
9018
,
1518
);
...
@@ -252,6 +253,10 @@ ARCHITECTURE str OF unb2_test IS
...
@@ -252,6 +253,10 @@ ARCHITECTURE str OF unb2_test IS
SIGNAL
reg_unb_sens_mosi
:
t_mem_mosi
;
SIGNAL
reg_unb_sens_mosi
:
t_mem_mosi
;
SIGNAL
reg_unb_sens_miso
:
t_mem_miso
;
SIGNAL
reg_unb_sens_miso
:
t_mem_miso
;
-- fpga sensors
SIGNAL
reg_fpga_sens_mosi
:
t_mem_mosi
;
SIGNAL
reg_fpga_sens_miso
:
t_mem_miso
;
-- eth1g ch0
-- eth1g ch0
SIGNAL
eth1g_eth0_mm_rst
:
STD_LOGIC
;
SIGNAL
eth1g_eth0_mm_rst
:
STD_LOGIC
;
SIGNAL
eth1g_eth0_tse_mosi
:
t_mem_mosi
;
-- ETH TSE MAC registers
SIGNAL
eth1g_eth0_tse_mosi
:
t_mem_mosi
;
-- ETH TSE MAC registers
...
@@ -504,6 +509,9 @@ BEGIN
...
@@ -504,6 +509,9 @@ BEGIN
reg_unb_sens_mosi
=>
reg_unb_sens_mosi
,
reg_unb_sens_mosi
=>
reg_unb_sens_mosi
,
reg_unb_sens_miso
=>
reg_unb_sens_miso
,
reg_unb_sens_miso
=>
reg_unb_sens_miso
,
reg_fpga_sens_mosi
=>
reg_fpga_sens_mosi
,
reg_fpga_sens_miso
=>
reg_fpga_sens_miso
,
-- . PPSH
-- . PPSH
reg_ppsh_mosi
=>
reg_ppsh_mosi
,
reg_ppsh_mosi
=>
reg_ppsh_mosi
,
reg_ppsh_miso
=>
reg_ppsh_miso
,
reg_ppsh_miso
=>
reg_ppsh_miso
,
...
@@ -585,6 +593,9 @@ BEGIN
...
@@ -585,6 +593,9 @@ BEGIN
reg_unb_sens_mosi
=>
reg_unb_sens_mosi
,
reg_unb_sens_mosi
=>
reg_unb_sens_mosi
,
reg_unb_sens_miso
=>
reg_unb_sens_miso
,
reg_unb_sens_miso
=>
reg_unb_sens_miso
,
reg_fpga_sens_mosi
=>
reg_fpga_sens_mosi
,
reg_fpga_sens_miso
=>
reg_fpga_sens_miso
,
-- PPSH
-- PPSH
reg_ppsh_mosi
=>
reg_ppsh_mosi
,
reg_ppsh_mosi
=>
reg_ppsh_mosi
,
reg_ppsh_miso
=>
reg_ppsh_miso
,
reg_ppsh_miso
=>
reg_ppsh_miso
,
...
@@ -727,8 +738,8 @@ BEGIN
...
@@ -727,8 +738,8 @@ BEGIN
g_sim
=>
g_sim
,
g_sim
=>
g_sim
,
g_nof_streams
=>
c_nof_streams_1GbE
,
g_nof_streams
=>
c_nof_streams_1GbE
,
g_data_w
=>
c_data_w_32
,
g_data_w
=>
c_data_w_32
,
g_bg_block_size
=>
c_
bg
_block_size
,
g_bg_block_size
=>
c_
def_1GbE
_block_size
,
g_bg_gapsize
=>
c_bg_gapsize
,
g_bg_gapsize
=>
c_bg_gapsize
_1GbE
,
g_bg_blocks_per_sync
=>
c_bg_blocks_per_sync
,
g_bg_blocks_per_sync
=>
c_bg_blocks_per_sync
,
g_def_block_size
=>
c_def_1GbE_block_size
,
g_def_block_size
=>
c_def_1GbE_block_size
,
g_max_nof_blocks_per_packet
=>
c_max_nof_blocks_per_packet_1GbE
,
g_max_nof_blocks_per_packet
=>
c_max_nof_blocks_per_packet_1GbE
,
...
@@ -800,8 +811,8 @@ BEGIN
...
@@ -800,8 +811,8 @@ BEGIN
g_sim
=>
g_sim
,
g_sim
=>
g_sim
,
g_nof_streams
=>
c_nof_streams_qsfp
+
c_nof_streams_ring
+
c_nof_streams_back0
+
c_nof_streams_back1
,
g_nof_streams
=>
c_nof_streams_qsfp
+
c_nof_streams_ring
+
c_nof_streams_back0
+
c_nof_streams_back1
,
g_data_w
=>
c_data_w_64
,
g_data_w
=>
c_data_w_64
,
g_bg_block_size
=>
c_
bg
_block_size
,
g_bg_block_size
=>
c_
def_10GbE
_block_size
,
g_bg_gapsize
=>
c_bg_gapsize
,
g_bg_gapsize
=>
c_bg_gapsize
_10GbE
,
g_bg_blocks_per_sync
=>
c_bg_blocks_per_sync
,
g_bg_blocks_per_sync
=>
c_bg_blocks_per_sync
,
g_def_block_size
=>
c_def_10GbE_block_size
,
g_def_block_size
=>
c_def_10GbE_block_size
,
g_max_nof_blocks_per_packet
=>
c_max_nof_blocks_per_packet_10GbE
,
g_max_nof_blocks_per_packet
=>
c_max_nof_blocks_per_packet_10GbE
,
...
...
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