Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
12
Issues
12
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Gateware
Commits
a12e16b0
Commit
a12e16b0
authored
Jun 06, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use HWIU in the top module
parent
3b0aeb80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
2 deletions
+41
-2
scb_top_bare.vhd
top/bare_top/scb_top_bare.vhd
+22
-2
wrsw_components_pkg.vhd
top/bare_top/wrsw_components_pkg.vhd
+19
-0
No files found.
top/bare_top/scb_top_bare.vhd
View file @
a12e16b0
...
...
@@ -10,6 +10,7 @@ use work.gencores_pkg.all;
use
work
.
wr_fabric_pkg
.
all
;
use
work
.
endpoint_pkg
.
all
;
use
work
.
wrsw_txtsu_pkg
.
all
;
use
work
.
hwinfo_pkg
.
all
;
use
work
.
wrsw_top_pkg
.
all
;
use
work
.
wrsw_shared_types_pkg
.
all
;
...
...
@@ -135,7 +136,7 @@ end scb_top_bare;
architecture
rtl
of
scb_top_bare
is
constant
c_NUM_WB_SLAVES
:
integer
:
=
1
1
;
constant
c_NUM_WB_SLAVES
:
integer
:
=
1
2
;
constant
c_NUM_PORTS
:
integer
:
=
g_num_ports
;
constant
c_MAX_PORTS
:
integer
:
=
18
;
...
...
@@ -155,9 +156,11 @@ architecture rtl of scb_top_bare is
constant
c_SLAVE_MBL_I2C1
:
integer
:
=
8
;
constant
c_SLAVE_SENSOR_I2C
:
integer
:
=
9
;
constant
c_SLAVE_PWM
:
integer
:
=
10
;
constant
c_SLAVE_HWIU
:
integer
:
=
11
;
constant
c_cnx_base_addr
:
t_wishbone_address_array
(
c_NUM_WB_SLAVES
-1
downto
0
)
:
=
(
x"00057800"
,
-- HW Info Unit
x"00057000"
,
-- PWM Controller
x"00056000"
,
-- Sensors-I2C
x"00055000"
,
-- MBL-I2C1
...
...
@@ -172,7 +175,8 @@ architecture rtl of scb_top_bare is
x"00000000"
);
-- RT Subsys
constant
c_cnx_base_mask
:
t_wishbone_address_array
(
c_NUM_WB_SLAVES
-1
downto
0
)
:
=
(
x"000ff000"
,
(
x"000ff800"
,
x"000ff800"
,
x"000ff000"
,
x"000ff000"
,
x"000ff000"
,
...
...
@@ -777,5 +781,21 @@ begin
clk_sel_o
<=
'0'
;
clk_dmtd_divsel_o
<=
'1'
;
-- choose 62.5 MHz DDMTD clock
clk_sys_o
<=
clk_sys
;
-----------------------------------------------------------------------------
-- Hardware Info Unit providing firmware version for software
-----------------------------------------------------------------------------
U_HWIU
:
xwrsw_hwiu
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
,
g_ver_major
=>
3
,
g_ver_minor
=>
0
,
g_build
=>
0
)
port
map
(
rst_n_i
=>
rst_n_periph
,
clk_i
=>
clk_sys
,
wb_i
=>
cnx_master_out
(
c_SLAVE_HWIU
),
wb_o
=>
cnx_master_in
(
c_SLAVE_HWIU
));
end
rtl
;
top/bare_top/wrsw_components_pkg.vhd
View file @
a12e16b0
...
...
@@ -4,6 +4,7 @@ use ieee.STD_LOGIC_1164.all;
use
work
.
wr_fabric_pkg
.
all
;
use
work
.
wishbone_pkg
.
all
;
use
work
.
wrsw_txtsu_pkg
.
all
;
use
work
.
hwinfo_pkg
.
all
;
package
wrsw_components_pkg
is
...
...
@@ -260,5 +261,23 @@ package wrsw_components_pkg is
wb_i
:
in
t_wishbone_slave_in
;
wb_o
:
out
t_wishbone_slave_out
);
end
component
;
component
xwrsw_hwiu
generic
(
g_interface_mode
:
t_wishbone_interface_mode
:
=
PIPELINED
;
g_address_granularity
:
t_wishbone_address_granularity
:
=
BYTE
;
g_ndbg_regs
:
integer
:
=
1
;
g_ver_major
:
integer
;
g_ver_minor
:
integer
;
g_build
:
integer
:
=
0
);
port
(
rst_n_i
:
in
std_logic
;
clk_i
:
in
std_logic
;
dbg_regs_i
:
in
std_logic_vector
(
g_ndbg_regs
*
32-1
downto
0
)
:
=
(
others
=>
'0'
);
wb_i
:
in
t_wishbone_slave_in
;
wb_o
:
out
t_wishbone_slave_out
);
end
component
;
end
wrsw_components_pkg
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment