x393
1.0
FPGAcodeforElphelNC393camera
simul_clk_div_mult.v
Go to the documentation of this file.
1
39
`timescale 1ns/1ps
40
41
module
simul_clk_div_mult
#(
42
parameter
MULTIPLIER
=
3
,
43
parameter
DIVISOR
=
5
,
44
parameter
SKIP_FIRST
=
5
45
) (
46
input
clk_in
,
47
input
en
,
48
output
clk_out
49
);
50
wire
clk_int
;
51
generate
52
if
(
DIVISOR
>
1
)
53
sim_clk_div
#(
54
.
DIVISOR
(
DIVISOR
)
55
)
sim_clk_div_i
(
56
.
clk_in
(
clk_in
),
// input
57
.
en
(
en
),
// input
58
.
clk_out
(
clk_int
)
// output
59
);
60
else
61
assign
clk_int
=
clk_in
;
62
endgenerate
63
generate
64
if
(
MULTIPLIER
>
1
)
65
simul_clk_mult
#(
66
.
MULTIPLIER
(
MULTIPLIER
),
67
.
SKIP_FIRST
(
SKIP_FIRST
)
68
)
simul_clk_mult_i
(
69
.
clk_in
(
clk_int
),
// input
70
.
en
(
en
),
// input
71
.
clk_out
(
clk_out
)
// output
72
);
73
else
74
assign
clk_out
=
clk_int
;
75
endgenerate
76
endmodule
77
simul_clk_div_mult.9188DIVISOR
9188DIVISOR5
Definition:
simul_clk_div_mult.v:43
simul_clk_div_mult.9193clk_int
9193clk_intwire
Definition:
simul_clk_div_mult.v:50
simul_clk_div_mult.sim_clk_div
sim_clk_div_i sim_clk_div[generate]
Definition:
simul_clk_div_mult.v:53
simul_clk_div_mult.9190clk_in
9190clk_in
Definition:
simul_clk_div_mult.v:46
simul_clk_mult.9197en
9197en
Definition:
simul_clk_mult.v:46
simul_clk_div_mult.9189SKIP_FIRST
9189SKIP_FIRST5
Definition:
simul_clk_div_mult.v:44
sim_clk_div.8810en
8810en
Definition:
sim_clk_div.v:45
simul_clk_mult.9196clk_in
9196clk_in
Definition:
simul_clk_mult.v:45
simul_clk_div_mult.9187MULTIPLIER
9187MULTIPLIER3
Definition:
simul_clk_div_mult.v:42
sim_clk_div.8811clk_out
8811clk_out
Definition:
sim_clk_div.v:46
simul_clk_div_mult.9191en
9191en
Definition:
simul_clk_div_mult.v:47
simul_clk_div_mult.simul_clk_mult
simul_clk_mult_i simul_clk_mult[generate]
Definition:
simul_clk_div_mult.v:65
simul_clk_div_mult
Definition:
simul_clk_div_mult.v:41
simul_clk_div_mult.9192clk_out
9192clk_out
Definition:
simul_clk_div_mult.v:48
simul_clk_mult.9198clk_out
9198clk_out
Definition:
simul_clk_mult.v:47
sim_clk_div.8809clk_in
8809clk_in
Definition:
sim_clk_div.v:44
simulation_modules
simul_clk_div_mult.v
Generated by
1.8.12