Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
Platform-independent core collection
Commits
eaacde90
Commit
eaacde90
authored
Jul 29, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[hdl] move assertion check from gc_sync_word_wr to gc_pulse_synchronizer
parent
b814d633
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
gc_pulse_synchronizer2.vhd
modules/common/gc_pulse_synchronizer2.vhd
+6
-0
gc_sync_word_wr.vhd
modules/common/gc_sync_word_wr.vhd
+4
-9
No files found.
modules/common/gc_pulse_synchronizer2.vhd
View file @
eaacde90
...
...
@@ -98,6 +98,12 @@ begin -- rtl
d_ack
<=
'1'
;
ready
<=
'1'
;
end
if
;
if
ready
=
'0'
then
assert
d_p_i
=
'0'
or
(
d_p_i
=
'1'
and
d_p_d0
=
'1'
)
report
"request while previous one not completed"
severity
ERROR
;
end
if
;
end
if
;
end
process
p_input_ack
;
...
...
modules/common/gc_sync_word_wr.vhd
View file @
eaacde90
...
...
@@ -94,14 +94,9 @@ begin
p_writer
:
process
(
clk_in_i
)
begin
if
rising_edge
(
clk_in_i
)
then
if
d_ready
=
'1'
then
if
wr_in
=
'1'
then
-- Write requested, save the input data
gc_sync_word_wr_data
<=
data_i
;
end
if
;
else
assert
wr_in
=
'0'
report
"request while previous one not completed"
severity
ERROR
;
if
d_ready
=
'1'
and
wr_in
=
'1'
then
-- Write requested, save the input data
gc_sync_word_wr_data
<=
data_i
;
end
if
;
end
if
;
end
process
p_writer
;
...
...
@@ -110,7 +105,7 @@ begin
begin
if
rising_edge
(
clk_out_i
)
then
if
wr_out
=
'1'
then
-- Data is stable.
-- Data is stable.
dat_out
<=
gc_sync_word_wr_data
;
wr_o
<=
'1'
;
else
...
...
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