Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
VME64x 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
VME64x core
Commits
ee2fd3cc
Commit
ee2fd3cc
authored
Sep 18, 2017
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VME_CR_CSR_Space: add comments.
parent
88f59fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
VME_CR_CSR_Space.vhd
hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd
+11
-0
No files found.
hdl/vme64x-core/rtl/VME_CR_CSR_Space.vhd
View file @
ee2fd3cc
...
@@ -353,11 +353,22 @@ begin
...
@@ -353,11 +353,22 @@ begin
when
c_BIT_CLR_REG
=>
when
c_BIT_CLR_REG
=>
s_reg_bit_reg
<=
s_reg_bit_reg
and
not
data_i
;
s_reg_bit_reg
<=
s_reg_bit_reg
and
not
data_i
;
-- VITAL-1-1 Rule 10.27
-- 4) Ownership shall be released by writing any value with
-- bit 2 set (eg 0x04) to the CSR Bit Clear Register
-- located at 0x7fff7. This clears the CRAM_OWNER
-- register and leaves it with a value of zero and also
-- clears the CRAM owned status.
if
data_i
(
c_CRAM_OWNER_BIT
)
=
'1'
then
if
data_i
(
c_CRAM_OWNER_BIT
)
=
'1'
then
s_reg_cram_owner
<=
x"00"
;
s_reg_cram_owner
<=
x"00"
;
end
if
;
end
if
;
when
c_CRAM_OWNER_REG
=>
when
c_CRAM_OWNER_REG
=>
-- VITAL-1-1 Rule 10.27
-- 2) Writing to CRAM_OWNER register when it contains a non-
-- zero value shall not change the value of the
-- CRAM_OWNER. That allows the first master that writes
-- a non-zero value to acquire ownership.
if
s_reg_cram_owner
=
x"00"
then
if
s_reg_cram_owner
=
x"00"
then
s_reg_cram_owner
<=
data_i
;
s_reg_cram_owner
<=
data_i
;
s_reg_bit_reg
(
c_CRAM_OWNER_BIT
)
<=
'1'
;
s_reg_bit_reg
(
c_CRAM_OWNER_BIT
)
<=
'1'
;
...
...
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