Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
EtherBone Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
EtherBone Core
Commits
bf105880
Commit
bf105880
authored
Jun 24, 2019
by
Michael Reese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eb_fifo: make it work with ghdl
parent
ba955bcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
eb_fifo.vhd
hdl/eb_slave_core/eb_fifo.vhd
+9
-3
No files found.
hdl/eb_slave_core/eb_fifo.vhd
View file @
bf105880
...
...
@@ -54,10 +54,13 @@ architecture rtl of eb_fifo is
signal
w_idx
:
unsigned
(
c_depth
downto
0
);
signal
r_idx1
:
unsigned
(
c_depth
downto
0
);
signal
w_idx1
:
unsigned
(
c_depth
downto
0
);
signal
w_idx_ram
:
std_logic_vector
(
c_depth
-1
downto
0
);
signal
r_idx1_ram
:
std_logic_vector
(
c_depth
-1
downto
0
);
constant
c_low
:
unsigned
(
c_depth
-1
downto
0
)
:
=
(
others
=>
'0'
);
constant
c_high
:
unsigned
(
c_depth
downto
0
)
:
=
'1'
&
c_low
;
begin
ram
:
generic_simple_dpram
...
...
@@ -71,13 +74,16 @@ begin
clka_i
=>
clk_i
,
bwea_i
=>
(
others
=>
'1'
),
wea_i
=>
w_push_i
,
aa_i
=>
std_logic_vector
(
w_idx
(
c_depth
-1
downto
0
))
,
aa_i
=>
w_idx_ram
,
da_i
=>
w_dat_i
,
clkb_i
=>
clk_i
,
ab_i
=>
std_logic_vector
(
r_idx1
(
c_depth
-1
downto
0
))
,
ab_i
=>
r_idx1_ram
,
qb_o
=>
r_dat_o
);
w_idx_ram
<=
std_logic_vector
(
w_idx
(
c_depth
-1
downto
0
));
r_idx1_ram
<=
std_logic_vector
(
r_idx1
(
c_depth
-1
downto
0
));
r_idx1
<=
(
r_idx
+
1
)
when
r_pop_i
=
'1'
else
r_idx
;
w_idx1
<=
(
w_idx
+
1
)
when
w_push_i
=
'1'
else
w_idx
;
...
...
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