Download Image Processing in Hardware - Department of Computer Engineering

Transcript
- 50 -
Figure 4.10 shows ports of this module and those ports are described in
the Table 4.4.
Table 4.4 Ports of Center Indexer
Port Name
Size
Direction
[MSB:LSB]
(bits)
Based on
Description
Center
Indexer
ci_rst_n
1
Input
Active-low Reset Signal
ci_ld_n
1
Input
If low, calculate and change the index
to the next position.
1
ci_nxt
Input
If high, shift the index to the next
position.
If low, reset the index to (0, 0).
img_width[9:0]
10
Input
Width of the Image
img_height[9:0]
10
Input
Height of the Image
img_addr[16:0]
17
Input
Starting Address of the Image
ci_end
1
Output
If high, indicates that the index reaches
the end of the image.
ci_row[9:0]
10
Output
Row Index of the Window
ci_col[9:0]
10
Output
Column Index of the Window
4.2.4.3 Operations
During the ci_rst_n signal is low, Center Indexer resets itself to the origin
position of the image (0, 0). The index can be shifted to the next position by
setting ci_nxt to high and send a negative-edge signal to ci_ld_n.
If ci_nxt is low when a negative-edge signal has been received at ci_ld_n,
the index will be reset to (0, 0) position.