x393
1.0
FPGAcodeforElphelNC393camera
dly01_16.v
Go to the documentation of this file.
1
39
`timescale 1ns/1ps
40
41
module
dly01_16
(
42
input
clk
,
43
input
rst
,
44
input
[
3
:
0
]
dly
,
45
input
din
,
46
output
dout
47
);
48
reg
[
15
:
0
]
sr
=
0
;
49
`ifdef
SHREG_SEQUENTIAL_RESET
50
always
@ (
posedge
clk
)
begin
51
sr
<= {
sr
[
14
:
0
],
din
& ~
rst
};
52
end
53
`else
54
// always @ (posedge rst or posedge clk) begin
55
always
@
(posedge
clk)
begin
56
if
(rst)
sr
<=0;
57
else
sr
<=
{sr[14:0],din};
58
end
59
`endif
60
`ifdef
SIMULATION
61
assign
dout
=
(|sr)
?
((&sr)
?
1'b1
:
sr[dly])
:
1'b0
;
62
`else
63
assign
dout
=
sr
[
dly
];
64
`endif
65
endmodule
66
67
dly01_16.10329dout
10329dout
Definition:
dly01_16.v:46
dly01_16.10327dly
[3:0] 10327dly
Definition:
dly01_16.v:44
dly01_16
Definition:
dly01_16.v:41
dly01_16.10326rst
10326rst
Definition:
dly01_16.v:43
dly01_16.10325clk
10325clk
Definition:
dly01_16.v:42
dly01_16.10330sr
10330srreg[15:0]
Definition:
dly01_16.v:48
dly01_16.10328din
10328din
Definition:
dly01_16.v:45
util_modules
dly01_16.v
Generated by
1.8.12