Go to Post I always love the optimism of [build] week 1. - Donut [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 28-12-2008, 18:48
Bsteckler's Avatar
Bsteckler Bsteckler is offline
Resident computer tech
FRC #2402 (JamesMonroebotics)
Team Role: Programmer
 
Join Date: Nov 2007
Rookie Year: 2008
Location: Fredericksburg, VA
Posts: 56
Bsteckler has a spectacular aura aboutBsteckler has a spectacular aura about
cRIO and PowerPC stuff

I sent this out to the programmers and electricians on my team, thought this might be of some help to the community:

Those who attended the workshops know that the cRIO that we will be using is powered by a Freescale 400 MHz PowerPC processor, this is substantially different then the PIC chip that we have used in the past, and I have compiled some stuff on the archetecture of the chip to aid in programming. Most of this probably won't make sence to you if you don't know much about microarchitectures, but its useful nonetheless.



These are some pages about the workings of the chip:

http://www.go-ecs.com/ppc/ppctek1.htm
http://www.ibm.com/developerworks/li...ary/l-powarch/

http://developer.apple.com/documenta...H240-TPXREF101


For those who don't want to read that, here is what it all means:


1) we have a ful 32 bit desktop grade processor to play with.

2) the PowerPC has 32 general purpose registers, and varying numbers of special purpose regisers, and some also have floating point registers. (in compairison, an x86 has a total of 8 registers).

3) being a 32 bit processor, it can address up to 4 GB of space (Physical RAM)

2) it can support strings up to 128 bytes in length, and can natively support byte, word, halfword, and doubleword data types

3) PowerPCs use big-endian byte ordering, so the most significant byte in any of the above data types is given the lowest address

4) the calling convention of the PowerPC passes arguments to functions into the registers (has no stack) whereas an x86 sends them to the stack, as such, programming errors and adressing variables outside of an array are less likely to cause a crash on a PPC

5) However, the EABI creates a "virtual stack" by reserving GPRs as stack pointers.

6) PowerPCs use shorter pipelines with complex stages, wereas an x86 uses longer, skinnier ones (basically, an x86 can run fast, but a PowerPC can do more stuff)

7) PowerPC instructions are 4 bytes in size and must be alligned, whereas x86 ones are variable in size and do not need to be alligned

8) the type 'bool' is four bytes on PowerPC, rather than one on x86

9) an integer divide by zero operation returns a 0 on PowerPCs, but floating point divide by zero operations cause a crash
__________________
"Don't try anything you are about to see us do at home, ever"
-The Mythbusters

2402 scores points.

Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Who is Programming the cRIO with C++ and what success are you having? Wayne C. Programming 20 01-01-2009 16:48
Team Fusion's take on cRIO and LabView RyanN National Instruments LabVIEW and Data Acquisition 12 20-12-2008 03:49
Students build SEGWAY in 3 months using Labview and the cRIO neutrino15 Programming 31 27-04-2008 22:08
Deadline and stuff... 894|mike Website Design/Showcase 3 23-02-2006 22:56
IBM Unveils 64-bit PowerPC Chip Joe Matt Chit-Chat 37 18-10-2002 08:34


All times are GMT -5. The time now is 06:15.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi