Back
MASM : LUT : LUTMERGE
LUTMERGE:

Syntax:

Description:

The LUTMERGE operation yields a 128 bit result, whose high bank consists of the low bank of Rs1, and whose low bank consists of the low bank of Rs0:

High = [Rs1].L Low = [Rs0].L

This result is then written via Port3 of the register file to Rd3, according to the selected bank BS3.

Microcode Pattern:

Takes 4 cycles to execute.
    Example: LUTMERGE 0xC 3 0xA 0xB

	  
	MPC  BS3 C3 P3 P2 P1 P0
	-----------------------
	MRG   0   0 00 00 0b 0a
	 -    0   0 00 00 00 00
	 -    0   0 00 00 00 00
	 -    3   0 0c 00 00 00

	  
Exceptions :

No exceptions

Example :

AGU_D ZERO 0x7FF0000000000000    !! Produces 0x7FF0000000000000
                                 !! on the output of the AGU
								 
ATR0H 0xA 3                      !! Writes 0x7FF0000000000000 on
                                 !! the low bank of register 0xA
								 
AGU_D ZERO 0xBBBBBBBBBBBBBBBB    !! Produces 0xBBBBBBBBBBBBBBBB
                                 !! on the output of the AGU
ATR0H 0xB 3                      !! Writes 0xBBBBBBBBBBBBBBBB on
                                 !! the low bank of register 0xB
								 
LUTMERGE 0xC 3 0xA 0xB           !! Writes 0xBBBBBBBBBBBBBBBB on
                                 !! the high bank of register 0xC,
                                 !! and 0x7FF0000000000000 on its 
                                 !! low bank

APE Group Zeuthen. 2003
$Id: lutmerge_masm.php,v 1.2 2004/08/04 09:43:31 noe Exp $
$Id: syntax.php,v 1.8 2004/08/04 09:25:34 noe Exp $