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
0aa9a5e2
Commit
0aa9a5e2
authored
Apr 23, 2019
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added debug output
parent
8f2f1a21
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
101 additions
and
84 deletions
+101
-84
fpga_version.vh
fpga_version.vh
+3
-2
sens_lepton3.v
sensor/sens_lepton3.v
+19
-2
sensor_channel.v
sensor/sensor_channel.v
+1
-1
vospi_segment_61.v
sensor/vospi_segment_61.v
+4
-3
x393_parallel_utilization.report
x393_parallel_utilization.report
+74
-76
x393_vospi.bit
x393_vospi.bit
+0
-0
No files found.
fpga_version.vh
View file @
0aa9a5e2
...
...
@@ -35,8 +35,9 @@
* contains all the components and scripts required to completely simulate it
* with at least one of the Free Software programs.
*/
parameter FPGA_VERSION = 32'h03930121; // VOSPI setting MOSI to low, according to DS
// parameter FPGA_VERSION = 32'h03930120; // VOSPI
parameter FPGA_VERSION = 32'h03930122; // Added debug output
// parameter FPGA_VERSION = 32'h03930121; // VOSPI setting MOSI to low, according to DS
// parameter FPGA_VERSION = 32'h03930120; // VOSPI
// parameter FPGA_VERSION = 32'h03930108; // parallel - in master branch
// parameter FPGA_VERSION = 32'h03930107; // parallel - 17.4 - restored delay after linear, fixed bug, all met
// parameter FPGA_VERSION = 32'h03930110; //A serial - 17.4 - restored delay after linear, fixed bug, timing met
...
...
sensor/sens_lepton3.v
View file @
0aa9a5e2
...
...
@@ -172,7 +172,7 @@ module sens_lepton3 #(
output
sof
,
// @pclk
output
eof
,
// @pclk
// not used PADS, keep for compatibility with PCB
in
put
dp2
,
// input reserved
in
out
dp2
,
// input reserved - used for hardware debug (output for oscilloscope)
input
dn2
,
// input reserved
input
dn6
// input reserved
...
...
@@ -181,6 +181,7 @@ module sens_lepton3 #(
// Status data (6 bits + 4)
wire
[
VOSPI_STATUS_BITS
-
1
:
0
]
status
;
wire
[
3
:
0
]
segment_id
;
wire
dbg_running
;
// output debug output for oscilloscope
wire
crc_err_w
;
// single-cycle CRC error
reg
crc_err_r
;
// at least one CRC error happened since reset
wire
in_busy
;
...
...
@@ -528,12 +529,26 @@ module sens_lepton3 #(
.
T
(
1'b1
)
// input - always off
)
;
iobuf
#(
// sns_ctl
.
DRIVE
(
PXD_DRIVE
)
,
.
IBUF_LOW_PWR
(
PXD_IBUF_LOW_PWR
)
,
.
IOSTANDARD
(
PXD_IOSTANDARD
)
,
.
SLEW
(
PXD_SLEW
)
)
dp2_i
(
.
O
(
fake_dp2
)
,
// output - currently not used
.
IO
(
dp2
)
,
// inout I/O pad
.
I
(
dbg_running
)
,
// input
.
T
(
1'b0
)
// input - always on
)
;
/*
ibuf_ibufg #(
.IOSTANDARD (PXD_IOSTANDARD)
) fake_dp2_i (
.O(fake_dp2),
.I(dp2)
);
*/
ibuf_ibufg
#(
.
IOSTANDARD
(
PXD_IOSTANDARD
)
...
...
@@ -606,7 +621,9 @@ module sens_lepton3 #(
.
sof
(
sof
)
,
// output
.
eof
(
eof
)
,
// output
.
crc_err
(
crc_err_w
)
,
// output
.
id
(
segment_id
)
// output[3:0]
.
id
(
segment_id
)
,
// output[3:0]
.
dbg_running
(
dbg_running
)
// output debug output for oscilloscope
)
;
...
...
sensor/sensor_channel.v
View file @
0aa9a5e2
...
...
@@ -1086,7 +1086,7 @@ module sensor_channel#(
.
sof
(
sof
)
,
// output
.
eof
(
eof
)
,
// output
// not used PADS, keep for compatibility with PCB
.
dp2
(
sns_dp40
[
2
])
,
// in
put reserved
.
dp2
(
sns_dp40
[
2
])
,
// in
out reserved - used for debug
.
dn2
(
sns_dn40
[
2
])
,
// input reserved
.
dn6
(
sns_dn76
[
6
])
// input reserved
)
;
...
...
sensor/vospi_segment_61.v
View file @
0aa9a5e2
...
...
@@ -73,7 +73,8 @@ module vospi_segment_61#(
output
sof
,
// start of frame
output
eof
,
// end of frame
output
crc_err
,
// crc error happened for any packet (valid at eos)
output
[
3
:
0
]
id
// segment number (valid at eos)
output
[
3
:
0
]
id
,
// segment number (valid at eos)
output
dbg_running
// debug output for segment_running
)
;
localparam
VOSPI_PACKETS_FRAME
=
(
VOSPI_SEGMENT_LAST
-
VOSPI_SEGMENT_FIRST
+
1
)
*
(
VOSPI_PACKET_LAST
-
VOSPI_PACKET_FIRST
+
1
)
;
...
...
@@ -134,7 +135,7 @@ module vospi_segment_61#(
assign
in_busy
=
segment_busy_r
;
// waiting for or receiving a segment
assign
discard_segment
=
discard_segment_r
;
// segment was disc arded
assign
dbg_running
=
segment_running
;
// To Buffer
always
@
(
posedge
clk
)
begin
// if (rst) first_segment_in <= 0;
...
...
@@ -178,7 +179,7 @@ module vospi_segment_61#(
segment_done
<=
segment_done_w
;
// module output reg
if
(
!
segment_busy_r
||
start
)
segment_running
<=
0
;
else
if
(
id_stb
&&
(
packet_id
[
11
:
0
]
==
VOSPI_PACKET_FIRST
))
segment_running
<=
1
;
else
if
(
id_stb
&&
(
packet_id
[
11
:
0
]
==
VOSPI_PACKET_FIRST
))
segment_running
<=
1
;
// packet_start <= !rst && !packet_busy && segment_busy_r;
packet_start
<=
!
rst
&&
!
packet_busy
&&
segment_busy_r
&&
!
packet_start
;
...
...
x393_parallel_utilization.report
View file @
0aa9a5e2
This diff is collapsed.
Click to expand it.
x393_vospi.bit
View file @
0aa9a5e2
No preview for this file type
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