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
df69d555
Commit
df69d555
authored
Feb 25, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more fixes
parent
7b13989a
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
97 additions
and
35 deletions
+97
-35
x393_tasks_pio_sequences.vh
includes/x393_tasks_pio_sequences.vh
+1
-1
cmd_encod_linear_wr.v
memctrl/cmd_encod_linear_wr.v
+2
-1
x393_testbench01.sav
x393_testbench01.sav
+94
-33
No files found.
includes/x393_tasks_pio_sequences.vh
View file @
df69d555
...
@@ -122,7 +122,7 @@ task set_write_block;
...
@@ -122,7 +122,7 @@ task set_write_block;
@(posedge CLK) axi_write_single_w(cmd_addr, data); cmd_addr <= cmd_addr + 1;
@(posedge CLK) axi_write_single_w(cmd_addr, data); cmd_addr <= cmd_addr + 1;
end
end
// add bank RCW ODT CKE SEL DQEN DQSEN DQSTGL DCI B_WR B_RD NOP, B_RST
// add bank RCW ODT CKE SEL DQEN DQSEN DQSTGL DCI B_WR B_RD NOP, B_RST
data <= func_encode_cmd( {5'b0,ca[9:0]}+(6
3
<<3),ba[2:0], 3, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0); // write w/o nop
data <= func_encode_cmd( {5'b0,ca[9:0]}+(6
2
<<3),ba[2:0], 3, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 0); // write w/o nop
@(posedge CLK) axi_write_single_w(cmd_addr, data); cmd_addr <= cmd_addr + 1;
@(posedge CLK) axi_write_single_w(cmd_addr, data); cmd_addr <= cmd_addr + 1;
// nop
// nop
// skip done bank ODT CKE SEL DQEN DQSEN DQSTGL DCI B_WR B_RD B_RST
// skip done bank ODT CKE SEL DQEN DQSEN DQSTGL DCI B_WR B_RD B_RST
...
...
memctrl/cmd_encod_linear_wr.v
View file @
df69d555
...
@@ -129,7 +129,8 @@ module cmd_encod_linear_wr #(
...
@@ -129,7 +129,8 @@ module cmd_encod_linear_wr #(
else
if
(
!
start
&&
!
gen_run
)
gen_addr
<=
0
;
else
if
(
!
start
&&
!
gen_run
)
gen_addr
<=
0
;
else
if
((
gen_addr
==
(
REPEAT_ADDR
-
1
))
&&
few_write
)
gen_addr
<=
jump_gen_addr
;
else
if
((
gen_addr
==
(
REPEAT_ADDR
-
1
))
&&
few_write
)
gen_addr
<=
jump_gen_addr
;
// else if ((gen_addr !=REPEAT_ADDR) || (num128[NUM_XFER_BITS:1]==0)) gen_addr <= gen_addr+1; // not in a loop
// else if ((gen_addr !=REPEAT_ADDR) || (num128[NUM_XFER_BITS:1]==0)) gen_addr <= gen_addr+1; // not in a loop
else
if
((
gen_addr
!=
REPEAT_ADDR
)
||
(
num128
==
2
))
gen_addr
<=
gen_addr
+
1
;
// not in a loop
// else if ((gen_addr !=REPEAT_ADDR) || (num128==2)) gen_addr <= gen_addr+1; // not in a loop
else
if
((
gen_addr
!=
REPEAT_ADDR
)
||
(
num128
[
NUM_XFER_BITS
:
2
]
==
0
))
gen_addr
<=
gen_addr
+
1
;
// not in a loop
//counting loops
//counting loops
if
(
rst
)
num128
<=
0
;
if
(
rst
)
num128
<=
0
;
...
...
x393_testbench01.sav
View file @
df69d555
This diff is collapsed.
Click to expand it.
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