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
a8c41f0e
Commit
a8c41f0e
authored
13 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
wishbone: wb_gpio_port: added extra address bits to support more than 32 I/Os, fixed file headeR
parent
28ad4406
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/wb_gpio_port/wb_gpio_port.vhd
+10
-7
10 additions, 7 deletions
modules/wishbone/wb_gpio_port/wb_gpio_port.vhd
modules/wishbone/wb_gpio_port/xwb_gpio_port.vhd
+2
-2
2 additions, 2 deletions
modules/wishbone/wb_gpio_port/xwb_gpio_port.vhd
with
12 additions
and
9 deletions
modules/wishbone/wb_gpio_port/wb_gpio_port.vhd
+
10
−
7
View file @
a8c41f0e
------------------------------------------------------------------------------
-- Title : Wishbone GPIO port
-- Project :
White Rabbit Switch
-- Project :
General Core Collection (gencores) Library
------------------------------------------------------------------------------
-- Author : Tomasz Wlostowski
-- Company : CERN BE-Co-HT
-- Created : 2010-05-18
-- Last update: 2011-
09-26
-- Last update: 2011-
10-05
-- Platform : FPGA-generic
-- Standard : VHDL'87
-------------------------------------------------------------------------------
-- Description: Bidirectional GPIO port of configurable width (1 to
3
2 bits).
-- Description: Bidirectional GPIO port of configurable width (1 to 2
56
bits).
-------------------------------------------------------------------------------
-- Copyright (c) 2010 Tomasz Wlostowski
-- Copyright (c) 2010, 2011 CERN
--
--
-------------------------------------------------------------------------------
-- Revisions :
-- Date Version Author Description
-- 2010-05-18 1.0 twlostow Created
-- 2010-10-04 1.1 twlostow Added WB slave adapter
-------------------------------------------------------------------------------
library
ieee
;
...
...
@@ -44,7 +47,7 @@ entity wb_gpio_port is
wb_cyc_i
:
in
std_logic
;
wb_stb_i
:
in
std_logic
;
wb_we_i
:
in
std_logic
;
wb_adr_i
:
in
std_logic_vector
(
5
downto
0
);
wb_adr_i
:
in
std_logic_vector
(
7
downto
0
);
wb_dat_i
:
in
std_logic_vector
(
c_wishbone_data_width
-1
downto
0
);
wb_dat_o
:
out
std_logic_vector
(
c_wishbone_data_width
-1
downto
0
);
wb_ack_o
:
out
std_logic
;
...
...
@@ -88,8 +91,8 @@ architecture behavioral of wb_gpio_port is
signal
resized_addr
:
std_logic_vector
(
c_wishbone_address_width
-1
downto
0
);
begin
resized_addr
(
5
downto
0
)
<=
wb_adr_i
;
resized_addr
(
c_wishbone_address_width
-1
downto
6
)
<=
(
others
=>
'0'
);
resized_addr
(
7
downto
0
)
<=
wb_adr_i
;
resized_addr
(
c_wishbone_address_width
-1
downto
8
)
<=
(
others
=>
'0'
);
U_Adapter
:
wb_slave_adapter
generic
map
(
...
...
This diff is collapsed.
Click to expand it.
modules/wishbone/wb_gpio_port/xwb_gpio_port.vhd
+
2
−
2
View file @
a8c41f0e
...
...
@@ -45,7 +45,7 @@ architecture rtl of xwb_gpio_port is
wb_cyc_i
:
in
std_logic
;
wb_stb_i
:
in
std_logic
;
wb_we_i
:
in
std_logic
;
wb_adr_i
:
in
std_logic_vector
(
5
downto
0
);
wb_adr_i
:
in
std_logic_vector
(
7
downto
0
);
wb_dat_i
:
in
std_logic_vector
(
c_wishbone_data_width
-1
downto
0
);
wb_dat_o
:
out
std_logic_vector
(
c_wishbone_data_width
-1
downto
0
);
wb_ack_o
:
out
std_logic
;
...
...
@@ -71,7 +71,7 @@ begin -- rtl
wb_cyc_i
=>
slave_i
.
cyc
,
wb_stb_i
=>
slave_i
.
stb
,
wb_we_i
=>
slave_i
.
we
,
wb_adr_i
=>
slave_i
.
adr
(
5
downto
0
),
wb_adr_i
=>
slave_i
.
adr
(
7
downto
0
),
wb_dat_i
=>
slave_i
.
dat
(
31
downto
0
),
wb_dat_o
=>
slave_o
.
dat
(
31
downto
0
),
wb_ack_o
=>
slave_o
.
ack
,
...
...
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