Page 1 of 1

xgate risc instruction set

Posted: Sun Mar 11, 2012 10:12 pm
by NinjaRider
i have been looking for the risc instruction set for the xgate to see what capabilities it had. i found a doc that contain some of the instructions and opcodes for it. from reading over the doc i dont believe it is the whole instruction set. has anyone been able to find a complete instruction set. possibly with the pnuemonics and opcodes for it?

Re: xgate risc instruction set

Posted: Mon Mar 12, 2012 6:57 am
by MotoFab
A search at Freescale.com for XGATE returns plenty of app notes you may find useful.

Here's some Assembly info:
XGATEASMRM : Motorola XGATE Assembler
http://cache.freescale.com/files/soft_d ... rch=1&sr=5

XGATECOMPRM : Freescale XGATE Compiler
http://cache.freescale.com/files/soft_d ... rch=1&sr=6

Re: xgate risc instruction set

Posted: Wed Mar 14, 2012 10:22 pm
by SleepyKeys
Basic instructions, just faster.

Re: xgate risc instruction set

Posted: Thu Mar 15, 2012 2:42 am
by Peter
My favorite thing about the xgate coprocessor is that it operates at twice the speed of the central processor so that it can access the memory in between the central processors clock cycles.

Re: xgate risc instruction set

Posted: Thu Mar 15, 2012 3:16 am
by Fred
It only runs at that speed when running from RAM, btw.

Re: xgate risc instruction set

Posted: Thu Mar 15, 2012 8:31 pm
by NinjaRider
after getting a copy of it some of its instructions arnt so basic. yes it does have a lot of basic instructions. No mul and div instructions thou. but you can still imul and idiv by multiples of 2.

i've never seen bit extraction instructions before.

@motofab - i saw those but they did not have how the binary is built, and not a detailed on what the opcodes are capable of.

Re: xgate risc instruction set

Posted: Thu Mar 15, 2012 8:43 pm
by Fred
Check out Sean's binutils patch, I believe the test suite contains a full set of instruction variants, as does the help dump option.

Re: xgate risc instruction set

Posted: Thu Mar 15, 2012 9:03 pm
by NinjaRider
i found it in the s12xgatev2.pdf. just took a lot of searching. time that i really didnt have the time for at the time when i asked.

i know it probably seems or sounds stupid that i ask when i can search myself. i usually do search for it. just end up not having enough time to find the answer im looking. i drive a truck and i dont always have access to internet when i have to shutdown at night.

by the test suite are you refering to the freescale suite?
i'll have to look at this patch you talk of...

Re: xgate risc instruction set

Posted: Thu Mar 15, 2012 10:03 pm
by Fred
No, part of the binutils patch.