Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Mock Turtle
Commits
266bf581
Commit
266bf581
authored
Apr 06, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mt_mqueue_slot: fix lost claims.
parent
df891a7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
mt_mqueue_slot.vhd
hdl/rtl/mqueue/mt_mqueue_slot.vhd
+3
-6
No files found.
hdl/rtl/mqueue/mt_mqueue_slot.vhd
View file @
266bf581
...
...
@@ -76,7 +76,7 @@ architecture arch of mt_mqueue_slot is
signal
occupied
:
unsigned
(
7
downto
0
);
signal
words_written
:
unsigned
(
7
downto
0
);
type
t_wr_state
is
(
IDLE
,
READY_SEND
,
ACCEPT_DATA
,
IGNORE_MESSAGE
);
type
t_wr_state
is
(
IDLE
,
ACCEPT_DATA
,
IGNORE_MESSAGE
);
type
t_rd_state
is
(
IDLE
,
WAIT_DISCARD
);
signal
mem_we
:
std_logic_vector
(
3
downto
0
);
...
...
@@ -252,11 +252,8 @@ begin
when
ACCEPT_DATA
=>
if
in_ready
=
'1'
then
wr_state
<=
READY_SEND
;
wr_state
<=
IDLE
;
end
if
;
when
READY_SEND
=>
wr_state
<=
IDLE
;
end
case
;
end
if
;
end
if
;
...
...
@@ -283,7 +280,7 @@ begin
end
if
;
end
process
p_read_side
;
q_write
<=
'1'
when
wr_state
=
READY_SEND
else
'0'
;
q_write
<=
'1'
when
wr_state
=
ACCEPT_DATA
and
in_ready
=
'1'
else
'0'
;
q_read
<=
'1'
when
rd_state
=
WAIT_DISCARD
and
out_discard
=
'1'
else
'0'
;
p_counters
:
process
(
clk_i
)
...
...
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