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
42c2f51a
Commit
42c2f51a
authored
Jan 24, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified axibram_read to mask bram_ren with dev_ready (and so bram_regen too)
parent
7e2f1a07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
axibram_read.v
axi/axibram_read.v
+3
-2
No files found.
axi/axibram_read.v
View file @
42c2f51a
...
@@ -142,10 +142,11 @@ module axibram_read #(
...
@@ -142,10 +142,11 @@ module axibram_read #(
assign
bram_rclk
=
aclk
;
// clock for read port
assign
bram_rclk
=
aclk
;
// clock for read port
assign
bram_raddr
=
read_in_progress
?
read_address
[
ADDRESS_BITS
-
1
:
0
]
:{
ADDRESS_BITS
{
1'b1
}};
// read address
assign
bram_raddr
=
read_in_progress
?
read_address
[
ADDRESS_BITS
-
1
:
0
]
:{
ADDRESS_BITS
{
1'b1
}};
// read address
`ifdef
USE_SHORT_REN_REGEN
`ifdef
USE_SHORT_REN_REGEN
reg
bram_regen_r
;
reg
bram_regen_r
;
// assign bram_ren = bram_reg_re_w && !pre_last_in_burst_r ; // read port enable
// assign bram_ren = bram_reg_re_w && !pre_last_in_burst_r ; // read port enable
assign
bram_ren
=
read_in_progress
;
/// assign bram_ren = read_in_progress;
assign
bram_ren
=
read_in_progress
&&
dev_ready
;
assign
bram_regen
=
bram_regen_r
;
// output register enable
assign
bram_regen
=
bram_regen_r
;
// output register enable
`else
`else
assign
bram_ren
=
bram_reg_re_w
;
// read port enable
assign
bram_ren
=
bram_reg_re_w
;
// read port enable
...
...
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