Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Platform-independent core collection
Commits
ac9ce6a0
Commit
ac9ce6a0
authored
13 years ago
by
Tomasz Wlostowski
Committed by
Tomasz Wlostowski
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
wishbone_pkg: new components added to WB package and manifests
parent
a245968d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/wishbone/Manifest.py
+3
-1
3 additions, 1 deletion
modules/wishbone/Manifest.py
modules/wishbone/wishbone_pkg.vhd
+58
-5
58 additions, 5 deletions
modules/wishbone/wishbone_pkg.vhd
with
61 additions
and
6 deletions
modules/wishbone/Manifest.py
+
3
−
1
View file @
ac9ce6a0
...
...
@@ -3,6 +3,8 @@ modules = { "local" :
[
# "wb_async_bridge",
"
wb_onewire_master
"
,
"
wb_i2c_master
"
,
"
wb_bus_fanout
"
,
"
wb_conmax
"
,
"
wb_gpio_port
"
,
"
wb_simple_timer
"
,
...
...
@@ -10,7 +12,7 @@ modules = { "local" :
"
wb_vic
"
,
"
wb_spi
"
,
"
wb_virtual_uart
"
,
"
wbgen2
"
,
"
wbgen2
"
]};
files
=
[
"
wishbone_pkg.vhd
"
];
This diff is collapsed.
Click to expand it.
modules/wishbone/wishbone_pkg.vhd
+
58
−
5
View file @
ac9ce6a0
...
...
@@ -46,9 +46,38 @@ package wishbone_pkg is
subtype
t_wishbone_device_descriptor
is
std_logic_vector
(
255
downto
0
);
type
t_wishbone_master_out_array
is
array
(
natural
range
<>
)
of
t_wishbone_master_out
;
type
t_wishbone_slave_out_array
is
array
(
natural
range
<>
)
of
t_wishbone_slave_out
;
type
t_wishbone_master_in_array
is
array
(
natural
range
<>
)
of
t_wishbone_master_in
;
type
t_wishbone_slave_in_array
is
array
(
natural
range
<>
)
of
t_wishbone_slave_in
;
------------------------------------------------------------------------------
-- Components declaration
-------------------------------------------------------------------------------
component
xwb_i2c_master
generic
(
g_interface_mode
:
t_wishbone_interface_mode
:
=
CLASSIC
);
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
slave_i
:
in
t_wishbone_slave_in
;
slave_o
:
out
t_wishbone_slave_out
;
desc_o
:
out
t_wishbone_device_descriptor
;
scl_pad_i
:
in
std_logic
;
scl_pad_o
:
out
std_logic
;
scl_padoen_o
:
out
std_logic
;
sda_pad_i
:
in
std_logic
;
sda_pad_o
:
out
std_logic
;
sda_padoen_o
:
out
std_logic
);
end
component
;
component
xwb_spi
generic
(
g_interface_mode
:
t_wishbone_interface_mode
);
g_interface_mode
:
t_wishbone_interface_mode
:
=
CLASSIC
);
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
...
...
@@ -61,10 +90,34 @@ package wishbone_pkg is
pad_miso_i
:
in
std_logic
);
end
component
;
type
t_wishbone_master_out_array
is
array
(
natural
range
<>
)
of
t_wishbone_master_out
;
type
t_wishbone_slave_out_array
is
array
(
natural
range
<>
)
of
t_wishbone_slave_out
;
type
t_wishbone_master_in_array
is
array
(
natural
range
<>
)
of
t_wishbone_master_in
;
type
t_wishbone_slave_in_array
is
array
(
natural
range
<>
)
of
t_wishbone_slave_in
;
component
xwb_onewire_master
generic
(
g_interface_mode
:
t_wishbone_interface_mode
:
=
CLASSIC
;
g_num_ports
:
integer
:
=
1
;
g_ow_btp_normal
:
string
:
=
"5.0"
;
g_ow_btp_overdrive
:
string
:
=
"1.0"
);
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
slave_i
:
in
t_wishbone_slave_in
;
slave_o
:
out
t_wishbone_slave_out
;
desc_o
:
out
t_wishbone_device_descriptor
;
owr_pwren_o
:
out
std_logic_vector
(
g_num_ports
-1
downto
0
);
owr_en_o
:
out
std_logic_vector
(
g_num_ports
-1
downto
0
);
owr_i
:
in
std_logic_vector
(
g_num_ports
-1
downto
0
));
end
component
;
component
xwb_bus_fanout
generic
(
g_num_outputs
:
natural
;
g_bits_per_slave
:
integer
:
=
14
);
port
(
clk_sys_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
slave_i
:
in
t_wishbone_slave_in
;
slave_o
:
out
t_wishbone_slave_out
;
master_i
:
in
t_wishbone_master_in_array
(
0
to
g_num_outputs
-1
);
master_o
:
out
t_wishbone_master_out_array
(
0
to
g_num_outputs
-1
));
end
component
;
end
wishbone_pkg
;
This diff is collapsed.
Click to expand it.
Preview
0%
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