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
9c0aa697
Commit
9c0aa697
authored
Sep 09, 2013
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[switch-optimization]: reduced number of IRQs to those actually used
parent
e683378c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
scb_top_bare.vhd
top/bare_top/scb_top_bare.vhd
+3
-3
No files found.
top/bare_top/scb_top_bare.vhd
View file @
9c0aa697
...
...
@@ -153,6 +153,7 @@ architecture rtl of scb_top_bare is
constant
c_ALL_EVENTS
:
integer
:
=
c_TRU_EVENTS
+
c_RTU_EVENTS
+
c_epevents_sz
;
constant
c_DUMMY_RMON
:
boolean
:
=
false
;
-- define TRUE to enable dummy_rmon module for debugging PSTAT
constant
c_NUM_GPIO_PINS
:
integer
:
=
1
;
constant
c_NUM_IRQS
:
integer
:
=
4
;
-- constant c_epevents_sz : integer := 15;
-------------------------------------------------------------------------------
-- Interconnect & memory layout
...
...
@@ -297,7 +298,7 @@ architecture rtl of scb_top_bare is
-- Component declarations
-----------------------------------------------------------------------------
signal
vic_irqs
:
std_logic_vector
(
3
1
downto
0
);
signal
vic_irqs
:
std_logic_vector
(
c_NUM_IRQS
-
1
downto
0
);
type
t_trig
is
array
(
integer
range
<>
)
of
std_logic_vector
(
31
downto
0
);
signal
control0
:
std_logic_vector
(
35
downto
0
);
...
...
@@ -526,7 +527,7 @@ begin
generic
map
(
g_interface_mode
=>
PIPELINED
,
g_address_granularity
=>
BYTE
,
g_num_interrupts
=>
32
)
g_num_interrupts
=>
c_NUM_IRQS
)
port
map
(
clk_sys_i
=>
clk_sys
,
rst_n_i
=>
rst_n_sys
,
...
...
@@ -1054,7 +1055,6 @@ begin
vic_irqs
(
1
)
<=
cnx_master_in
(
c_SLAVE_TXTSU
)
.
int
;
vic_irqs
(
2
)
<=
cnx_master_in
(
c_SLAVE_RTU
)
.
int
;
vic_irqs
(
3
)
<=
cnx_master_in
(
c_SLAVE_PSTATS
)
.
int
;
vic_irqs
(
31
downto
4
)
<=
(
others
=>
'0'
);
-------------------------------------------------------------------------------
-- Various constant-driven I/Os
...
...
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