Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393
Commits
c270adff
Commit
c270adff
authored
Apr 04, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed possibility of conflicting mode bits
parent
4bc39b80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
mcntrl_tiled_linear_rw.v
memctrl/mcntrl_tiled_linear_rw.v
+6
-5
No files found.
memctrl/mcntrl_tiled_linear_rw.v
View file @
c270adff
...
...
@@ -595,7 +595,8 @@ module mcntrl_tiled_linear_rw#(
row_left[NUM_XFER_BITS:0]; // 7 bits, max 'h40
*/
lim_by_tile_width
<=
(
|
row_left
[
FRAME_WIDTH_BITS
:
MAX_TILE_WIDTH
]
||
(
!
linear_mode
&&
(
row_left
[
MAX_TILE_WIDTH
:
0
]
>=
tile_cols
)))
?
(
linear_mode
?
(
1
<<
NUM_XFER_BITS
)
:
tile_cols
)
:
// (linear_mode ? (1<< NUM_XFER_BITS) : tile_cols):
(
linear_mode
?
{
1'b1
,{
NUM_XFER_BITS
{
1'b0
}}}
:
tile_cols
)
:
row_left
[
MAX_TILE_WIDTH
:
0
]
;
// 7 bits, max 'h40
end
...
...
@@ -668,16 +669,16 @@ wire start_not_partial= xfer_start_r[0] && !xfer_limited_by_mem_page_r;
// LINEAR matched
// TILED and TILED_LIN only:
if
(
mrst
)
xfer_start_rd_r
<=
0
;
else
xfer_start_rd_r
<=
xfer_grant
&&
!
chn_rst
&&
!
cmd_wrmem
&&
!
byte32
;
else
xfer_start_rd_r
<=
xfer_grant
&&
!
chn_rst
&&
!
cmd_wrmem
&&
!
byte32
&&
!
linear_mode
;
if
(
mrst
)
xfer_start_wr_r
<=
0
;
else
xfer_start_wr_r
<=
xfer_grant
&&
!
chn_rst
&&
cmd_wrmem
&&
!
byte32
;
else
xfer_start_wr_r
<=
xfer_grant
&&
!
chn_rst
&&
cmd_wrmem
&&
!
byte32
&&
!
linear_mode
;
if
(
mrst
)
xfer_start32_rd_r
<=
0
;
else
xfer_start32_rd_r
<=
xfer_grant
&&
!
chn_rst
&&
!
cmd_wrmem
&&
byte32
;
else
xfer_start32_rd_r
<=
xfer_grant
&&
!
chn_rst
&&
!
cmd_wrmem
&&
byte32
&&
!
linear_mode
;
if
(
mrst
)
xfer_start32_wr_r
<=
0
;
else
xfer_start32_wr_r
<=
xfer_grant
&&
!
chn_rst
&&
cmd_wrmem
&&
byte32
;
else
xfer_start32_wr_r
<=
xfer_grant
&&
!
chn_rst
&&
cmd_wrmem
&&
byte32
&&
!
linear_mode
;
if
(
mrst
)
xfer_start_lin_rd_r
<=
0
;
else
xfer_start_lin_rd_r
<=
xfer_grant
&&
!
chn_rst
&&
!
cmd_wrmem
&&
linear_mode
;
...
...
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