Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 8th December 2007, 07:29 PM   (permalink)
Default How does the AVR do one clock per instruction?

I'm curious how does AVR acheive a one clock per instruction speed?
Is it a larger pipeline prefetch?
Execution on both clock edges?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 8th December 2007, 09:28 PM   (permalink)
Default

Here are a couple of pages from the ATTiny13 datasheet. Might give you some insight. Never really bothered with trying to understand it myself.
Attached Files
File Type: pdf Pages from ATTINY13.pdf (17.7 KB, 3 views)
HarveyH42 is online now  
Old 8th December 2007, 10:06 PM   (permalink)
Default

Quote:
Originally Posted by blueroomelectronics
I'm curious how does AVR acheive a one clock per instruction speed?
Is it a larger pipeline prefetch?
Execution on both clock edges?
It mostly means there is a ton of parallel paths between all the buses/registers/memories (data and program) and the central ALU device.

Upon decoding of the instructions there are enables placed on all elements needed to perform the specific instruction with just a single clock pulse, and yes I would assume that both the leading and trailing edges are needed to make that all happen in one cycle.

It's a classic tradeoff of how much logic to expense Vs speed of operation. Also in retrospect, IF a 4 cycle per instruction processor can be clocked 4X the clock speed of a single clock per instruction processor, does the user of the device really care?


Lefty
__________________
Measurement changes behavior
Leftyretro is offline  
Old 9th December 2007, 01:52 AM   (permalink)
Default

Quote:
Originally Posted by Leftyretro
Also in retrospect, IF a 4 cycle per instruction processor can be clocked 4X the clock speed of a single clock per instruction processor, does the user of the device really care?
Lefty
Power consumption at 4X clock speed? RF Emission level? So I would rephrase:

If a 4 cycle per instruction processor can be clocked at 4X the clock speed of a single clock per instruction processor while consuming no increase in overall power, does the user of the device really care?
__________________
L.Chung
eblc1388 is offline  
Old 9th December 2007, 02:05 AM   (permalink)
Default

Quote:
Originally Posted by eblc1388
Power consumption at 4X clock speed? RF Emission level? So I would rephrase:

If a 4 cycle per instruction processor can be clocked at 4X the clock speed of a single clock per instruction processor while consuming no increase in overall power, does the user of the device really care?
Good point. Microprocessor design like most any complex design is a series of (many, often conflicting) trade-off decisions. Like if a hardware multiply/divide function should be included or if just micro-coded shift instructions be used to accomplish the same task.

I recall one in-house mini-computer design I worked on in the 70s that only had one real hardware register, the ALU accumulator, the others (program counter, variable registers, etc) were just reserved addresses in the main core memory, less logic required, slower speed but fast enough to do the purpose task of the in house application.

Logic design of computers is a fascinating subject. Even a product series like the famous DEC PDP-11 series of the 70s & 80s had tremendous differences in implementing the many models all with the standard PDP-11 instruction set.

Lefty
__________________
Measurement changes behavior

Last edited by Leftyretro; 9th December 2007 at 02:07 AM.
Leftyretro is offline  
Old 9th December 2007, 02:29 AM   (permalink)
Default

Yes. Respect!

And without the hard work of so many people involved in earlier pioneering work in computing, we would not have what we have today.
__________________
L.Chung
eblc1388 is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Problem with LCD code? spondootre Micro Controllers 15 29th April 2008 10:15 AM
Hardcode a PIC by hand? (or 16F74 + par.port.prog = problem) smilen Micro Controllers 15 21st November 2005 10:23 AM
counter clock 111 General Electronics Chat 7 3rd July 2005 01:51 AM
Help me on basketball's game clock and shot clock! syaw_007 Electronic Projects Design/Ideas/Reviews 1 6th September 2004 10:50 PM
Processor Instruction Format mus3na Micro Controllers 1 19th January 2004 07:13 PM



All times are GMT. The time now is 01:09 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker