CM1K Hardware User’s Manual
31
RTCAT
(2)
Real-time category, or category of top firing neuron 0x1E
R
0x0000
Remark 1:
The CM_RTDIST and CM_RTCAT registers remains unchanged until the next rise of the DIST_VAL and
CAT_VAL pulses.
Remark 2:
The distance and category returned by the recognition logic are the ones of the neuron with the best
match. If you want to read the response of additional firing neurons you need to stop temporarily the recognition
logic as follow: set RECO_ACTIVE to 0, read N additional DIST and CAT registers and set RECO_ACTIVE back to 1.
Similarly, if you want to read the identifier of the firing neuron, the reco logic must also be stopped temporarily.
Remark 3:
The UNC_ line or the bit 3 of the RSR register are both an indicator that more than one neuron
recognize the input vector.
4.1.3
Video input registers
If the pin VI_EN of the CM1K chip is high, a video signal can be sent directly to the digital input bus. In this case the
chip extracts a signature vector from a region of interest in the video frame as the video signal as it is received.
The region of interest is described by the registers described below.
Description
Addr 8-bit
Access
Data 16-bit
Default
TOP
Left corner of the
U
ROI
U
in pixels
0x11
R/W
200
LEFT
Top corner of the ROI in pixels
0x12
R/W
120
WIDTH
Nominal width of the ROI in pixels
0x13
R/W
340
HEIGHT
Nominal height of the ROI in pixels
0x14
R/W
220
BWIDTH
Width of a
U
primitive block
U
in pixels
0x15
R/W
20
BHEIGHT
Height of a primitive block in pixels
0x16
R/W
20
ROIINIT
Reset the ROI to default
0x1F
W
0
The ROI nominal size must fit a number of primitive blocks less than or equal to 256. The relationship between the
four parameters is : NWIDTH= n*BWIDTH, NHEIGHT= m*BHEIGHT and n*m <=256.
BWIDTH and BHEIGHT define the maximum size of a square block such that 256 of them fit at the most in the
region [NWIDTH , NHEIGHT]. As a result, the region with a size [NWidth, NHeight] can be divided into up to 256
square blocks of equal size [BWIDTH, BHEIGHT]. The pixels of block #i are averaged to produce the i
th
component
of the signature vector.