Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EtherBone Core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
EtherBone Core
Commits
8f7d1e6c
Commit
8f7d1e6c
authored
13 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
Added the new flag to the diagnostics and spec.
parent
0895f302
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
etherbone.lua
+4
-2
4 additions, 2 deletions
etherbone.lua
spec/spec.tex
+13
-1
13 additions, 1 deletion
spec/spec.tex
with
17 additions
and
3 deletions
etherbone.lua
+
4
−
2
View file @
8f7d1e6c
...
...
@@ -59,6 +59,7 @@ eb.hdr_magic = ProtoField.uint16("eb.hdr.magic", "Magic ", base.HEX, n
eb
.
hdr_ver
=
ProtoField
.
uint16
(
"eb.hdr.ver"
,
"Version "
,
base
.
DEC
,
nil
,
0xF000
)
eb
.
hdr_proberep
=
ProtoField
.
uint16
(
"eb.hdr.proberes"
,
"Probe Reply "
,
base
.
DEC
,
VALS_BOOL
,
0x0200
)
eb
.
hdr_probereq
=
ProtoField
.
uint16
(
"eb.hdr.probereq"
,
"Probe Flag "
,
base
.
DEC
,
VALS_BOOL
,
0x0100
)
eb
.
hdr_noreads
=
ProtoField
.
uint16
(
"eb.hdr.noreads"
,
"No Reads "
,
base
.
DEC
,
VALS_BOOL
,
0x0100
)
eb
.
hdr_adrs
=
ProtoField
.
uint16
(
"eb.hdr.adrw"
,
"Address Width "
,
base
.
DEC
,
VALS_SIZE
,
0x00F0
)
eb
.
hdr_ports
=
ProtoField
.
uint16
(
"eb.hdr.portw"
,
"Port Width "
,
base
.
DEC
,
VALS_SIZE
,
0x000F
)
...
...
@@ -121,8 +122,9 @@ function proto_eb.dissector(buf, pinfo, tree)
t_hdr
:
add
(
eb
.
hdr_magic
,
buf
(
0
,
2
))
-- magic
t_hdr
:
add
(
eb
.
hdr_ver
,
buf
(
2
,
2
))
-- version
t_hdr
:
add
(
eb
.
hdr_proberep
,
buf
(
2
,
2
))
-- probe
t_hdr
:
add
(
eb
.
hdr_probereq
,
buf
(
2
,
2
))
-- probe
t_hdr
:
add
(
eb
.
hdr_proberep
,
buf
(
2
,
2
))
-- probe response
t_hdr
:
add
(
eb
.
hdr_probereq
,
buf
(
2
,
2
))
-- probe request
t_hdr
:
add
(
eb
.
hdr_noreads
,
buf
(
2
,
2
))
-- no reads
t_hdr
:
add
(
eb
.
hdr_adrs
,
buf
(
2
,
2
))
-- supported addr size
t_hdr
:
add
(
eb
.
hdr_ports
,
buf
(
2
,
2
))
-- supported port size
...
...
This diff is collapsed.
Click to expand it.
spec/spec.tex
+
13
−
1
View file @
8f7d1e6c
...
...
@@ -292,6 +292,8 @@ Section~\ref{sec:eb-master}.
\subsection
{
Config Space
}
!!! always bigendian
In addition to remote bus access,
Etherbone also provides a configuration space.
This config space is used to specify transmission parameters,
...
...
@@ -321,6 +323,9 @@ where they can be handled by the EB core/code and invisible to the WB bus.
\subsection
{
Bus Widths
}
!!! discuss width in header => port width
as opposed to operation width using select lines
In Wishbone,
a bus may have a port width that is 8/16/32/64 bits wide.
Thus, a master in one WB bus might write 32-bits at a time,
...
...
@@ -745,7 +750,8 @@ conforming Etherbone hardware or software implementation.
\bitheader
{
0,4,7,8,16
}
\\
\bitbox
{
16
}{
\nameref
{
field:Magic
}
(0x4E6F)
}
\\
\bitbox
{
4
}{
\nameref
{
field:Version
}}
&
\colorbitbox
{
\reserved
}{
2
}{}
&
\colorbitbox
{
\reserved
}{
1
}{}
&
\bitbox
{
1
}{
\rotatebox
{
90
}{
\small
\nameref
{
field:NR
}}}
&
\bitbox
{
1
}{
\rotatebox
{
90
}{
\small
\nameref
{
field:PR
}}}
&
\bitbox
{
1
}{
\rotatebox
{
90
}{
\small
\nameref
{
field:PF
}}}
&
\bitbox
{
4
}{
\nameref
{
field:AddrSz
}}
&
...
...
@@ -855,6 +861,12 @@ device should appear in the \nameref{field:AddrSz} and \nameref{field:PortSz} fi
The
\nameref
{
field:Version
}
field should contain the largest of the
requested version and the supported version.
\paragraph
{
NR
}
\label
{
field:NR
}
!!! fixme !!!
The No-Reads flag (NR) is used to indicate ...
\paragraph
{
AddrSz
}
\label
{
field:AddrSz
}
In principle,
...
...
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