x393
1.0
FPGAcodeforElphelNC393camera
Main Page
+
Packages
Packages
+
Package Functions
All
Functions/Tasks/Always Construct
Variables
+
Design Unit List
Design Unit List
Design Units
Design Unit Hierarchy
+
Design Unit Members
+
All
1
2
3
5
7
8
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions/Tasks/Always Construct
_
a
c
e
f
g
l
p
r
s
t
w
+
Variables
1
2
3
5
7
8
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
File Members
+
All
c
d
s
u
+
Variables
c
d
s
u
•
All
Classes
Namespaces
Files
Functions
Variables
dcc_sync393.v
Go to the documentation of this file.
1
41
`timescale 1ns/1ps
42
43
module
dcc_sync393
(
44
input
sclk
,
// system clock: twe, ta,tdi - valid @negedge (ra, tdi - 2 cycles ahead)
45
input
dcc_en
,
// clk rising, sync with start of the frame
46
input
finish_dcc
,
// sclk rising
47
input
dcc_vld
,
// clk rising
48
input
[
15
:
0
]
dcc_data
,
//[15:0] clk risimg
49
output
reg
statistics_dv
,
//sclk
50
output
reg
[
15
:
0
]
statistics_do
);
//[15:0] sclk
51
52
reg
statistics_we
;
53
reg
dcc_run
;
54
reg
dcc_finishing
;
55
reg
skip16
;
// output just 16 zero words (data was multiple of 16 words)
56
reg
[
4
:
0
]
dcc_cntr
;
57
58
always
@ (
posedge
sclk
)
begin
59
dcc_run
<=
dcc_en
;
60
statistics_we
<=
dcc_run
&&
dcc_vld
&& !
statistics_we
;
61
statistics_do
[
15
:
0
] <=
statistics_we
?
dcc_data
[
15
:
0
]:
16'h0
;
62
statistics_dv
<=
statistics_we
||
dcc_finishing
;
63
skip16
<=
finish_dcc
&& (
statistics_dv
?(
dcc_cntr
[
3
:
0
]==
4'hf
):(
dcc_cntr
[
3
:
0
]==
4'h0
) );
64
if
(!
dcc_run
)
dcc_cntr
[
3
:
0
] <=
4'h0
;
65
else
if
(
statistics_dv
)
dcc_cntr
[
3
:
0
] <=
dcc_cntr
[
3
:
0
]+
1
;
66
dcc_cntr
[
4
] <=
dcc_run
&& ((
dcc_finishing
&& ((
dcc_cntr
[
3
:
0
]==
4'hf
)^
dcc_cntr
[
4
]) ||
skip16
));
67
dcc_finishing
<=
dcc_run
&& (
finish_dcc
|| (
dcc_finishing
&& (
dcc_cntr
[
4
:
1
]!=
4'hf
)));
68
end
69
70
endmodule
71
dcc_sync393.2290dcc_en
2290dcc_en
Definition:
dcc_sync393.v:45
dcc_sync393.2299skip16
2299skip16reg
Definition:
dcc_sync393.v:55
dcc_sync393
Definition:
dcc_sync393.v:43
dcc_sync393.2289sclk
2289sclk
Definition:
dcc_sync393.v:44
dcc_sync393.2292dcc_vld
2292dcc_vld
Definition:
dcc_sync393.v:47
dcc_sync393.2297dcc_run
2297dcc_runreg
Definition:
dcc_sync393.v:53
dcc_sync393.2296statistics_we
2296statistics_wereg
Definition:
dcc_sync393.v:52
dcc_sync393.2295statistics_do
reg [15:0] 2295statistics_do
Definition:
dcc_sync393.v:50
dcc_sync393.2291finish_dcc
2291finish_dcc
Definition:
dcc_sync393.v:46
dcc_sync393.2300dcc_cntr
2300dcc_cntrreg[4:0]
Definition:
dcc_sync393.v:56
dcc_sync393.2298dcc_finishing
2298dcc_finishingreg
Definition:
dcc_sync393.v:54
dcc_sync393.2293dcc_data
[15:0] 2293dcc_data
Definition:
dcc_sync393.v:48
dcc_sync393.2294statistics_dv
reg 2294statistics_dv
Definition:
dcc_sync393.v:49
compressor_jp
dcc_sync393.v
Generated by
1.8.12