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
1689b63f
Commit
1689b63f
authored
11 years ago
by
Mathias Kreider
Browse files
Options
Downloads
Patches
Plain Diff
bug fixes: eb M/S tx ram size, ebm record generation, ebm ctrl interface
parent
d6cd53f7
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
hdl/eb_master_core/eb_master_top.vhd
+22
-14
22 additions, 14 deletions
hdl/eb_master_core/eb_master_top.vhd
hdl/eb_master_core/eb_record_gen.vhd
+1
-1
1 addition, 1 deletion
hdl/eb_master_core/eb_record_gen.vhd
hdl/eb_slave_core/eb_commit_fifo.vhd
+1
-1
1 addition, 1 deletion
hdl/eb_slave_core/eb_commit_fifo.vhd
with
24 additions
and
16 deletions
hdl/eb_master_core/eb_master_top.vhd
+
22
−
14
View file @
1689b63f
...
...
@@ -76,7 +76,8 @@ architecture rtl of eb_master_top is
signal
s_skip_stb
:
std_logic
;
signal
s_length
:
unsigned
(
15
downto
0
);
-- of UDP in words
signal
s_max_ops
:
unsigned
(
15
downto
0
);
-- max eb ops count per packet
signal
s_slave_i
:
t_wishbone_slave_in
;
signal
s_slave_framer_i
:
t_wishbone_slave_in
;
signal
s_slave_ctrl_i
:
t_wishbone_slave_in
;
signal
s_master_o
:
t_wishbone_master_out
;
signal
s_master_i
:
t_wishbone_master_in
;
...
...
@@ -98,6 +99,13 @@ begin
s_rst_n
<=
rst_n_i
and
wb_rst_n
;
s_slave_ctrl_i
.
cyc
<=
slave_i
.
cyc
;
s_slave_ctrl_i
.
stb
<=
(
slave_i
.
stb
and
not
slave_i
.
adr
(
c_dat_bit
));
s_slave_ctrl_i
.
we
<=
slave_i
.
we
;
s_slave_ctrl_i
.
adr
<=
slave_i
.
adr
;
s_slave_ctrl_i
.
dat
<=
slave_i
.
dat
;
s_slave_ctrl_i
.
sel
<=
slave_i
.
sel
;
wbif
:
eb_master_wb_if
generic
map
(
g_adr_bits_hi
=>
g_adr_bits_hi
)
PORT
MAP
(
...
...
@@ -109,8 +117,8 @@ begin
slave_i
=>
slave_i
,
slave_dat_o
=>
s_dat
,
slave_ack_o
=>
s_ack
,
slave_err_o
=>
s_err
,
slave_ack_o
=>
open
,
slave_err_o
=>
open
,
my_mac_o
=>
s_my_mac
,
my_ip_o
=>
s_my_ip
,
...
...
@@ -138,16 +146,16 @@ begin
-- |_________|
--SLAVE IF
s_slave_i
.
cyc
<=
slave_i
.
cyc
or
s_tx_send_now
;
s_slave_i
.
stb
<=
slave_i
.
stb
and
(
slave_i
.
adr
(
c_dat_bit
)
or
s_tx_send_now
)
;
s_slave_i
.
we
<=
slave_i
.
adr
(
c_rw_bit
);
s_slave_i
.
adr
<=
s_adr_hi
(
s_adr_hi
'left
downto
s_adr_hi
'length
-
g_adr_bits_hi
)
&
slave_i
.
adr
(
slave_i
.
adr
'left
-
g_adr_bits_hi
downto
0
);
s_slave_i
.
dat
<=
slave_i
.
dat
;
s_slave_i
.
sel
<=
slave_i
.
sel
;
s_slave_
framer_
i
.
cyc
<=
slave_i
.
cyc
or
s_tx_send_now
;
s_slave_
framer_
i
.
stb
<=
(
slave_i
.
stb
and
slave_i
.
adr
(
c_dat_bit
)
)
or
s_tx_send_now
;
s_slave_
framer_
i
.
we
<=
slave_i
.
adr
(
c_rw_bit
);
s_slave_
framer_
i
.
adr
<=
s_adr_hi
(
s_adr_hi
'left
downto
s_adr_hi
'length
-
g_adr_bits_hi
)
&
slave_i
.
adr
(
slave_i
.
adr
'left
-
g_adr_bits_hi
downto
0
);
s_slave_
framer_
i
.
dat
<=
slave_i
.
dat
;
s_slave_
framer_
i
.
sel
<=
slave_i
.
sel
;
slave_o
.
dat
<=
s_dat
;
slave_o
.
ack
<=
s_ack
;
slave_o
.
err
<=
s_err
;
slave_o
.
stall
<=
s_stall
;
slave_o
.
err
<=
'0'
;
slave_o
.
stall
<=
s_stall
and
slave_i
.
adr
(
c_dat_bit
)
;
slave_o
.
int
<=
'0'
;
slave_o
.
rty
<=
'0'
;
...
...
@@ -156,7 +164,7 @@ begin
PORT
MAP
(
clk_i
=>
clk_i
,
rst_n_i
=>
s_rst_n
,
slave_i
=>
s_slave_i
,
slave_i
=>
s_slave_
framer_
i
,
slave_stall_o
=>
s_stall
,
tx_send_now_i
=>
s_tx_send_now
,
master_o
=>
s_framer2narrow
,
...
...
@@ -208,9 +216,9 @@ p_main : process (clk_i, rst_n_i) is
begin
if
rst_n_i
=
'0'
then
s_ack
<=
'0'
;
elsif
rising_edge
(
clk_i
)
then
s_ack
<=
slave_i
.
cyc
and
slave_i
.
stb
and
not
(
s_stall
and
slave_i
.
adr
(
c_dat_bit
));
end
if
;
end
process
;
...
...
This diff is collapsed.
Click to expand it.
hdl/eb_master_core/eb_record_gen.vhd
+
1
−
1
View file @
1689b63f
...
...
@@ -265,7 +265,7 @@ begin
r_mode
<=
UNKNOWN
;
r_wb_pop
<=
'0'
;
elsif
rising_edge
(
clk_i
)
then
v_mtu_reached
:
=
(
r_rec_hdr
.
wr_cnt
+
r_rec_hdr
.
rd_cnt
>
=
max_ops_i
);
v_mtu_reached
:
=
(
r_rec_hdr
.
wr_cnt
+
r_rec_hdr
.
rd_cnt
>
max_ops_i
)
and
(
max_ops_i
/=
0
)
;
v_state
:
=
r_hdr_state
;
r_rec_valid
<=
'0'
;
r_push_hdr
<=
'0'
;
...
...
This diff is collapsed.
Click to expand it.
hdl/eb_slave_core/eb_commit_fifo.vhd
+
1
−
1
View file @
1689b63f
...
...
@@ -66,7 +66,7 @@ begin
ram
:
generic_simple_dpram
generic
map
(
g_data_width
=>
g_width
,
g_size
=>
g_size
,
g_size
=>
2
**
c_depth
,
g_dual_clock
=>
false
)
port
map
(
rst_n_i
=>
rstn_i
,
...
...
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