Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
euro-adc-65m-14b-40cha-gw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
eurocard
euro-adc-65m-14b-40cha
euro-adc-65m-14b-40cha-gw
Commits
11ace841
Commit
11ace841
authored
Jun 06, 2017
by
Dave Newbold
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://bitbucket.org/solidexperiment/solid_firmware
parents
38a35590
5e46c47f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ipbus_decode_top_sim.vhd
projects/8ch/firmware/hdl/ipbus_decode_top_sim.vhd
+4
-4
No files found.
projects/8ch/firmware/hdl/ipbus_decode_top_sim.vhd
View file @
11ace841
...
...
@@ -17,7 +17,7 @@ package ipbus_decode_top_sim is
subtype
ipbus_sel_t
is
std_logic_vector
(
IPBUS_SEL_WIDTH
-
1
downto
0
);
function
ipbus_sel_top_sim
(
addr
:
in
std_logic_vector
(
31
downto
0
))
return
ipbus_sel_t
;
-- START automatically generated VHDL the
Mon Jun 5 23:01:57
2017
-- START automatically generated VHDL the
Tue Jun 6 13:22:51
2017
constant
N_SLV_CSR
:
integer
:
=
0
;
constant
N_SLV_CHAN
:
integer
:
=
1
;
constant
N_SLV_TIMING
:
integer
:
=
2
;
...
...
@@ -37,11 +37,11 @@ package body ipbus_decode_top_sim is
variable
sel
:
ipbus_sel_t
;
begin
-- START automatically generated VHDL the
Mon Jun 5 23:01:57
2017
-- START automatically generated VHDL the
Tue Jun 6 13:22:51
2017
if
std_match
(
addr
,
"------------------------0000----"
)
then
sel
:
=
ipbus_sel_t
(
to_unsigned
(
N_SLV_CSR
,
IPBUS_SEL_WIDTH
));
-- csr / base 0x00000000 / mask 0x000000f0
elsif
std_match
(
addr
,
"------------------------000
0
----"
)
then
sel
:
=
ipbus_sel_t
(
to_unsigned
(
N_SLV_CHAN
,
IPBUS_SEL_WIDTH
));
-- chan / base 0x000000
08
/ mask 0x000000f0
elsif
std_match
(
addr
,
"------------------------000
1
----"
)
then
sel
:
=
ipbus_sel_t
(
to_unsigned
(
N_SLV_CHAN
,
IPBUS_SEL_WIDTH
));
-- chan / base 0x000000
10
/ mask 0x000000f0
elsif
std_match
(
addr
,
"------------------------0100----"
)
then
sel
:
=
ipbus_sel_t
(
to_unsigned
(
N_SLV_TIMING
,
IPBUS_SEL_WIDTH
));
-- timing / base 0x00000040 / mask 0x000000f0
elsif
std_match
(
addr
,
"------------------------0101----"
)
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