Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit Switch - Gateware
Manage
Activity
Members
Labels
Plan
Issues
14
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
White Rabbit Switch - Gateware
Commits
55d9ed75
Commit
55d9ed75
authored
13 years ago
by
Tomasz Wlostowski
Browse files
Options
Downloads
Patches
Plain Diff
added shared WR types package
parent
f3069ac7
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/wrsw_shared_types_pkg.vhd
+28
-0
28 additions, 0 deletions
modules/wrsw_shared_types_pkg.vhd
rt/dev/ad9516_regs.h
+0
-70
0 additions, 70 deletions
rt/dev/ad9516_regs.h
with
28 additions
and
70 deletions
modules/wrsw_shared_types_pkg.vhd
0 → 100644
+
28
−
0
View file @
55d9ed75
library
ieee
;
use
ieee
.
STD_LOGIC_1164
.
all
;
package
wrsw_shared_types_pkg
is
constant
c_RTU_MAX_PORTS
:
integer
:
=
64
;
type
t_rtu_request
is
record
valid
:
std_logic
;
smac
:
std_logic_vector
(
47
downto
0
);
dmac
:
std_logic_vector
(
47
downto
0
);
vid
:
std_logic_vector
(
11
downto
0
);
has_vid
:
std_logic
;
prio
:
std_logic_vector
(
2
downto
0
);
has_prio
:
std_logic
;
end
record
;
type
t_rtu_response
is
record
valid
:
std_logic
;
port_mask
:
std_logic_vector
(
c_RTU_MAX_PORTS
-1
downto
0
);
prio
:
std_logic_vector
(
2
downto
0
);
drop
:
std_logic
;
end
record
;
type
t_rtu_request_array
is
array
(
integer
range
<>
)
of
t_rtu_request
;
type
t_rtu_response_array
is
array
(
integer
range
<>
)
of
t_rtu_response
;
end
wrsw_shared_types_pkg
;
This diff is collapsed.
Click to expand it.
rt/dev/ad9516_regs.h
deleted
100644 → 0
+
0
−
70
View file @
f3069ac7
const
struct
{
int
reg
;
uint8_t
val
}
ad9516_regs
[]
=
{
{
0x0000
,
0x99
},
{
0x0001
,
0x00
},
{
0x0002
,
0x10
},
{
0x0003
,
0xC3
},
{
0x0004
,
0x00
},
{
0x0010
,
0x7C
},
{
0x0011
,
0x01
},
{
0x0012
,
0x00
},
{
0x0013
,
0x04
},
{
0x0014
,
0x07
},
{
0x0015
,
0x00
},
{
0x0016
,
0x04
},
{
0x0017
,
0x00
},
{
0x0018
,
0x07
},
{
0x0019
,
0x00
},
{
0x001A
,
0x00
},
{
0x001B
,
0x00
},
{
0x001C
,
0x02
},
{
0x001D
,
0x00
},
{
0x001E
,
0x00
},
{
0x001F
,
0x0E
},
{
0x00A0
,
0x01
},
{
0x00A1
,
0x00
},
{
0x00A2
,
0x00
},
{
0x00A3
,
0x01
},
{
0x00A4
,
0x00
},
{
0x00A5
,
0x00
},
{
0x00A6
,
0x01
},
{
0x00A7
,
0x00
},
{
0x00A8
,
0x00
},
{
0x00A9
,
0x01
},
{
0x00AA
,
0x00
},
{
0x00AB
,
0x00
},
{
0x00F0
,
0x0A
},
{
0x00F1
,
0x0A
},
{
0x00F2
,
0x0A
},
{
0x00F3
,
0x0A
},
{
0x00F4
,
0x08
},
{
0x00F5
,
0x0A
},
{
0x0140
,
0x43
},
{
0x0141
,
0x43
},
{
0x0142
,
0x43
},
{
0x0143
,
0x43
},
{
0x0190
,
0x00
},
{
0x0191
,
0x80
},
{
0x0192
,
0x00
},
{
0x0193
,
0xBB
},
{
0x0194
,
0x00
},
{
0x0195
,
0x00
},
{
0x0196
,
0x00
},
{
0x0197
,
0x00
},
{
0x0198
,
0x00
},
{
0x0199
,
0x22
},
{
0x019A
,
0x00
},
{
0x019B
,
0x11
},
{
0x019C
,
0x00
},
{
0x019D
,
0x00
},
{
0x019E
,
0x22
},
{
0x019F
,
0x00
},
{
0x01A0
,
0x11
},
{
0x01A1
,
0x00
},
{
0x01A2
,
0x00
},
{
0x01A3
,
0x00
},
{
0x01E0
,
0x04
},
{
0x01E1
,
0x02
},
{
0x0230
,
0x00
},
{
0x0231
,
0x00
},
{
0x0232
,
0x00
},
{
-
1
,
0
}};
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