Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Simple PCIe FMC carrier SPEC
Commits
d696b8e7
Commit
d696b8e7
authored
Jul 12, 2019
by
Dimitris Lampridis
Committed by
Tristan Gingold
Jul 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add support for user interrupts
parent
4c16cb5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
spec_template_wr.vhd
hdl/rtl/spec_template_wr.vhd
+10
-1
No files found.
hdl/rtl/spec_template_wr.vhd
View file @
d696b8e7
...
@@ -60,6 +60,8 @@ entity spec_template_wr is
...
@@ -60,6 +60,8 @@ entity spec_template_wr is
g_WITH_DDR
:
boolean
:
=
True
;
g_WITH_DDR
:
boolean
:
=
True
;
-- Address of the application meta-data. 0 if none.
-- Address of the application meta-data. 0 if none.
g_APP_OFFSET
:
std_logic_vector
(
31
downto
0
)
:
=
x"0000_0000"
;
g_APP_OFFSET
:
std_logic_vector
(
31
downto
0
)
:
=
x"0000_0000"
;
-- Number of user interrupts
g_NUM_USER_IRQ
:
natural
:
=
1
;
-- WR PTP firmware.
-- WR PTP firmware.
g_DPRAM_INITF
:
string
:
=
"../../../../wr-cores/bin/wrpc/wrc_phy8.bram"
;
g_DPRAM_INITF
:
string
:
=
"../../../../wr-cores/bin/wrpc/wrc_phy8.bram"
;
-- Fabric interface selection for WR Core:
-- Fabric interface selection for WR Core:
...
@@ -228,6 +230,9 @@ entity spec_template_wr is
...
@@ -228,6 +230,9 @@ entity spec_template_wr is
clk_sys_62m5_o
:
out
std_logic
;
clk_sys_62m5_o
:
out
std_logic
;
rst_sys_62m5_n_o
:
out
std_logic
;
rst_sys_62m5_n_o
:
out
std_logic
;
-- Interrupts
irq_user_i
:
in
std_logic_vector
(
g_NUM_USER_IRQ
+
5
downto
6
)
:
=
(
others
=>
'0'
);
-- WR fabric interface (when g_fabric_iface = "plain")
-- WR fabric interface (when g_fabric_iface = "plain")
wrf_src_o
:
out
t_wrf_source_out
;
wrf_src_o
:
out
t_wrf_source_out
;
wrf_src_i
:
in
t_wrf_source_in
:
=
c_DUMMY_SRC_IN
;
wrf_src_i
:
in
t_wrf_source_in
:
=
c_DUMMY_SRC_IN
;
...
@@ -334,7 +339,7 @@ architecture top of spec_template_wr is
...
@@ -334,7 +339,7 @@ architecture top of spec_template_wr is
signal
irq_master
:
std_logic
;
signal
irq_master
:
std_logic
;
constant
num_interrupts
:
natural
:
=
4
;
constant
num_interrupts
:
natural
:
=
6
+
g_NUM_USER_IRQ
;
signal
irqs
:
std_logic_vector
(
num_interrupts
-
1
downto
0
);
signal
irqs
:
std_logic_vector
(
num_interrupts
-
1
downto
0
);
-- clock and reset
-- clock and reset
...
@@ -686,6 +691,10 @@ begin -- architecture top
...
@@ -686,6 +691,10 @@ begin -- architecture top
fmc0_scl_b
<=
fmc0_scl_out
when
fmc0_scl_oen
=
'0'
else
'Z'
;
fmc0_scl_b
<=
fmc0_scl_out
when
fmc0_scl_oen
=
'0'
else
'Z'
;
fmc0_sda_b
<=
fmc0_sda_out
when
fmc0_sda_oen
=
'0'
else
'Z'
;
fmc0_sda_b
<=
fmc0_sda_out
when
fmc0_sda_oen
=
'0'
else
'Z'
;
gen_user_irq
:
if
g_NUM_USER_IRQ
>
0
generate
irqs
(
irq_user_i
'range
)
<=
irq_user_i
;
end
generate
gen_user_irq
;
g_vic
:
if
g_with_vic
generate
g_vic
:
if
g_with_vic
generate
i_vic
:
entity
work
.
xwb_vic
i_vic
:
entity
work
.
xwb_vic
generic
map
(
generic
map
(
...
...
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