Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VME64x core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
VME64x core
Commits
010af550
Commit
010af550
authored
Sep 29, 2017
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
irq controller: makes use of registers more explicit.
parent
74e4bdd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
VME_IRQ_Controller.vhd
hdl/vme64x-core/rtl/VME_IRQ_Controller.vhd
+16
-2
No files found.
hdl/vme64x-core/rtl/VME_IRQ_Controller.vhd
View file @
010af550
...
...
@@ -197,9 +197,23 @@ begin
if
s_irq_pending
=
'0'
then
VME_IRQ_n_o
<=
(
others
=>
'1'
);
if
INT_Req_i
=
'1'
and
retry_mask
=
'1'
and
INT_Level_i
/=
"000"
then
if
INT_Req_i
=
'1'
and
retry_mask
=
'1'
then
s_irq_pending
<=
'1'
;
VME_IRQ_n_o
(
to_integer
(
unsigned
(
INT_Level_i
)))
<=
'0'
;
-- Explicit decoding
case
INT_Level_i
is
when
"001"
=>
VME_IRQ_n_o
<=
"1111110"
;
when
"010"
=>
VME_IRQ_n_o
<=
"1111101"
;
when
"011"
=>
VME_IRQ_n_o
<=
"1111011"
;
when
"100"
=>
VME_IRQ_n_o
<=
"1110111"
;
when
"101"
=>
VME_IRQ_n_o
<=
"1101111"
;
when
"110"
=>
VME_IRQ_n_o
<=
"1011111"
;
when
"111"
=>
VME_IRQ_n_o
<=
"0111111"
;
when
others
=>
-- Incorrect value for INT_Level_i, ignore it.
VME_IRQ_n_o
<=
"1111111"
;
s_irq_pending
<=
'0'
;
end
case
;
end
if
;
else
if
irq_ack_i
=
'1'
then
...
...
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