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
728f9315
Commit
728f9315
authored
Jan 27, 2015
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding command encoders
parent
8957af0c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
2 deletions
+59
-2
x393.v
x393.v
+59
-2
No files found.
x393.v
View file @
728f9315
...
@@ -197,6 +197,7 @@ module x393 #(
...
@@ -197,6 +197,7 @@ module x393 #(
)
;
)
;
localparam
ADDRESS_NUMBER
=
15
;
localparam
ADDRESS_NUMBER
=
15
;
localparam
COLADDR_NUMBER
=
10
;
// Source for reset and clock
// Source for reset and clock
wire
[
3
:
0
]
fclk
;
// PL Clocks [3:0], output
wire
[
3
:
0
]
fclk
;
// PL Clocks [3:0], output
wire
[
3
:
0
]
frst
;
// PL Clocks [3:0], output
wire
[
3
:
0
]
frst
;
// PL Clocks [3:0], output
...
@@ -526,6 +527,26 @@ end
...
@@ -526,6 +527,26 @@ end
wire
[
6
:
0
]
buf_raddr_chn3
;
wire
[
6
:
0
]
buf_raddr_chn3
;
wire
[
63
:
0
]
buf_rdata_chn3
;
wire
[
63
:
0
]
buf_rdata_chn3
;
// memory controller comamnd encoders interface
wire
[
2
:
0
]
encod_linear_rd_bank
;
wire
[
ADDRESS_NUMBER
-
1
:
0
]
encod_linear_rd_row
;
wire
[
COLADDR_NUMBER
-
4
:
0
]
encod_linear_rd_col
;
wire
[
5
:
0
]
encod_linear_rd_bursts
;
wire
encod_linear_rd_start
;
wire
[
31
:
0
]
encod_linear_rd_cmd
;
wire
encod_linear_rd_wr
;
wire
encod_linear_rd_done
;
wire
[
2
:
0
]
encod_linear_wr_bank
;
wire
[
ADDRESS_NUMBER
-
1
:
0
]
encod_linear_wr_row
;
wire
[
COLADDR_NUMBER
-
4
:
0
]
encod_linear_wr_col
;
wire
[
5
:
0
]
encod_linear_wr_bursts
;
wire
encod_linear_wr_start
;
wire
[
31
:
0
]
encod_linear_wr_cmd
;
wire
encod_linear_wr_wr
;
wire
encod_linear_wr_done
;
cmd_mux
#(
cmd_mux
#(
.
AXI_WR_ADDR_BITS
(
AXI_WR_ADDR_BITS
)
,
.
AXI_WR_ADDR_BITS
(
AXI_WR_ADDR_BITS
)
,
.
CONTROL_ADDR
(
CONTROL_ADDR
)
,
.
CONTROL_ADDR
(
CONTROL_ADDR
)
,
...
@@ -611,7 +632,43 @@ end
...
@@ -611,7 +632,43 @@ end
.
start_out
(
status_root_start
)
// input
.
start_out
(
status_root_start
)
// input
)
;
)
;
/* Instance template for module memctrl16 */
cmd_encod_linear_rd
#(
.
ADDRESS_NUMBER
(
ADDRESS_NUMBER
)
,
.
COLADDR_NUMBER
(
COLADDR_NUMBER
)
,
.
CMD_PAUSE_BITS
(
CMD_PAUSE_BITS
)
,
.
CMD_DONE_BIT
(
CMD_DONE_BIT
)
)
cmd_encod_linear_rd_i
(
.
rst
(
axi_rst
)
,
// input
.
clk
(
mclk
)
,
// input
.
bank_in
(
encod_linear_rd_bank
)
,
// input[2:0]
.
row_in
(
encod_linear_rd_row
)
,
// input[14:0]
.
start_col
(
encod_linear_rd_col
)
,
// input[6:0]
.
num128_in
(
encod_linear_rd_bursts
)
,
// input[5:0]
.
start
(
encod_linear_rd_start
)
,
// input
.
enc_cmd
(
encod_linear_rd_cmd
)
,
// output[31:0] reg
.
enc_wr
(
encod_linear_rd_wr
)
,
// output reg
.
enc_done
(
encod_linear_rd_done
)
// output reg
)
;
cmd_encod_linear_wr
#(
.
ADDRESS_NUMBER
(
ADDRESS_NUMBER
)
,
.
COLADDR_NUMBER
(
COLADDR_NUMBER
)
,
.
CMD_PAUSE_BITS
(
CMD_PAUSE_BITS
)
,
.
CMD_DONE_BIT
(
CMD_DONE_BIT
)
)
cmd_encod_linear_wr_i
(
.
rst
(
axi_rst
)
,
// input
.
clk
(
mclk
)
,
// input
.
bank_in
(
encod_linear_wr_bank
)
,
// input[2:0]
.
row_in
(
encod_linear_wr_row
)
,
// input[14:0]
.
start_col
(
encod_linear_wr_col
)
,
// input[6:0]
.
num128_in
(
encod_linear_wr_bursts
)
,
// input[5:0]
.
start
(
encod_linear_wr_start
)
,
// input
.
enc_cmd
(
encod_linear_wr_cmd
)
,
// output[31:0] reg
.
enc_wr
(
encod_linear_wr_wr
)
,
// output reg
.
enc_done
(
encod_linear_wr_done
)
// output reg
)
;
memctrl16
#(
memctrl16
#(
.
DLY_LD
(
DLY_LD
)
,
.
DLY_LD
(
DLY_LD
)
,
.
DLY_LD_MASK
(
DLY_LD_MASK
)
,
.
DLY_LD_MASK
(
DLY_LD_MASK
)
,
...
...
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