4

_____

(enable)

 

COMP_

WORD

(input parameter I1) —I1 MC— (miscompare) LEN

00001

(input parameter I2) —I2

Q— (output parameter Q)

(bit string mask) —M

BN— (bit number for last miscompare)

(bit number) —BIT

 

 

_____

Parameters:

 

 

 

 

Parameter

 

Description

 

 

 

 

 

enable

 

Permissive logic to enable the function.

 

 

 

I1

 

Reference for the first bit string to be compared.

 

 

 

I2

 

Reference for the second bit string to be compared.

 

 

 

M

 

Reference for the bit string mask.

 

 

 

BIT

 

Reference for the bit number where the next comparison should start.

 

 

 

MC

 

User logic to determine if a miscompare has occurred.

 

 

 

Q

 

Output copy of the mask (M) bit string.

 

 

 

BN

 

Number of the bit where the last compare occurred.

 

 

 

LEN

 

LEN is the number of words in the bit string.

 

 

 

Valid Memory Types:

Parameter

flow

%I

%Q

%M

%T

%S

%G

%R

%AI

%AQ

const

none

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

enable

 

 

 

 

 

 

 

 

 

 

 

I1

 

o

o

o

o

o

o

 

 

I2

 

o

o

o

o

o

o

 

 

M

 

o

o

o

o

o†

o

 

 

BIT

 

 

LEN

 

 

 

 

 

 

 

 

 

 

•‡

 

MC

 

 

 

 

 

 

 

 

 

 

Q

 

o

o

o

o

o†

o

 

 

BN

 

 

 

Valid reference or place where power may flow through the function.

o Valid reference for WORD data only; not valid for DWORD.

† %SA, %SB, %SC only; %S cannot be used.

‡ Max const value of 4095 for WORD and 2047 for DWORD.

GFK-0467K

Chapter 4 Series 90-30/20/Micro Instructions Set

4-67

Page 148
Image 148
GE 90-30/20/Micro manual User logic to determine if a miscompare has occurred