SCAMP-5c Vision System  1.0.0
An image sensor with a parallel processor on focal plane
Data Structures | Functions
pe_digital_macros.h File Reference

Go to the source code of this file.

Data Structures

class  dreg
 operand of this type can only be a digital register More...
 

Functions

dreg pe_or (dreg a1, dreg a2)
 OR two DREGs into another DREG. More...
 
dreg pe_and (dreg a1, dreg a2)
 AND two DREGs into another DREG. More...
 
dreg pe_nor (dreg a1, dreg a2)
 NOR two DREGs into another DREG. More...
 
dreg pe_nand (dreg a1, dreg a2)
 NAND two DREGs into another DREG. More...
 

Detailed Description

Author
Jianing Chen

Function Documentation

dreg pe_or ( dreg  a1,
dreg  a2 
)

OR two DREGs into another DREG.

Parameters
a1first DREG
a2second DREG
Returns
result of "a1 OR a2"

Example Usage:

The following line achieves the Boolean operation "R1 = R2 OR R3":

1 R1 = pe.or(R2,R3)
dreg pe_and ( dreg  a1,
dreg  a2 
)

AND two DREGs into another DREG.

Parameters
a1first DREG
a2second DREG
Returns
result of "a1 AND a2"

Example Usage:

The following line achieves the Boolean operation "R1 = R2 AND R3":

1 R1 = pe.and(R2,R3)
dreg pe_nor ( dreg  a1,
dreg  a2 
)

NOR two DREGs into another DREG.

Parameters
a1first DREG
a2second DREG
Returns
result of "a1 NOR a2"

Example Usage:

The following line achieves the Boolean operation "R1 = R2 NOR R3":

1 R1 = pe.nor(R2,R3)
dreg pe_nand ( dreg  a1,
dreg  a2 
)

NAND two DREGs into another DREG.

Parameters
a1first DREG
a2second DREG
Returns
result of "a1 NAND a2"

Example Usage:

The following line achieves the Boolean operation "R1 = R2 NAND R3":

1 R1 = pe.nand(R2,R3)