What does a 4-bit Micro-processor do?

  • Thread starter Thread starter Young Learner
  • Start date Start date
Click For Summary
The discussion centers around the capabilities of 4-bit processors, particularly the Intel 4004, which was the first commercially available microprocessor. While initially perceived as limited to addition, the 4004 could perform various arithmetic operations, including subtraction and decimal adjustments, through its instruction set. The processor featured 46 instructions, with many being 8 bits wide, allowing for complex manipulations beyond simple addition. The architecture enabled multiple 4-bit processors to be combined for greater computational power, initially targeting applications like cash registers and calculators. The conversation also touches on the historical context of CPU design, noting that earlier CPUs were not integrated into a single chip and required additional hardware for functionality. The flexibility of instruction sets is highlighted, with the potential for Turing completeness depending on the command set. Overall, the evolution of microprocessors from basic arithmetic to more complex operations is emphasized.
Young Learner
Messages
40
Reaction score
0
Today I just came across a video in youtube,"Making your own 4-bit processor". Does a 4-bit processor performs only addition. I also searched and came to know that Intel 4004 was the first commercially available micro-processor. Did Intel released a processor which worth only adding?
 
Computer science news on Phys.org
The 4-bit micros could be ganged together to make an arbitrarily larger CPU. I think the initial audience was for cash register machines and desktop calculators.

Doing addition was a great feat. Other arithmetic operations could be done in software, slower but still workable.

http://en.wikipedia.org/wiki/4004
 
A 4-bit microprocessor can do any manipulation that can be done 4 bits at a time.
All depends on how you encoded it and what it is hooked up to.

If you only use 4 bits per instruction, then you can have 32 separate instructions.
If one of the instructions is "treat the following two nibbles as one instruction" then you could, in principle, have 256 additional instructions - each taking 3 machine cycles to load. But an instruction could be "run in 8-bit mode" in which case everything takes two machine cycles to load.

It depends on how clever the designers were.
The 4004 had 46 instructions... 41 were 8 bits wide.
But you can do a lot with 32 instructions.

Before the 4004, the CPU was not even all one component.
 
In a way 8 commands are enough to write any program (think brain**** - sigh, profanity filter doesn't allow to properly post name of the language).
 
Young Learner said:
Does a 4-bit processor performs only addition. I also searched and came to know that Intel 4004 was the first commercially available micro-processor. Did Intel released a processor which worth only adding?
The Intel 4004 has an add, subtract, and a decimal adjust instruction (for handling bcd addition, I don't see an adjust for subraction, so you'd have to use 10's complement math for negative bcd numbers (subtract a number from all 9's, then increment the result)). I'm not sure if early 4004 based calculators used binary or bcd.

Another 4 bit / bit slice processor chip series (not a complete cpu in a chip) was the AMD 2900 series. Several 16 bit mini-computers were based on the 2900 series of chips. Additional hardware was used to convert a mini-computer's machine language into 2900 operations.

http://en.wikipedia.org/wiki/AMD_Am2900
 
Last edited:
Only require the command set to be Turing complete don't we - something like that?
Thue is Turing complete, has 1 command and 2 operands.
http://en.wikipedia.org/wiki/Thue_(programming_language)
... but most of the implementation is in the hardware in that case right?

... and in the good ol' days, we used to have to build out own CPUs one valve at a time. Why the kids of today...
 
Last edited by a moderator:
Simon Bridge said:
... and in the good ol' days, we used to have to build out own CPUs one valve at a time. Why the kids of today...

And I though it was hard and nerve-wrecking putting my new i5 into place :biggrin:
 

Similar threads

  • · Replies 37 ·
2
Replies
37
Views
7K
  • · Replies 40 ·
2
Replies
40
Views
5K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 34 ·
2
Replies
34
Views
8K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 13 ·
Replies
13
Views
4K
Replies
29
Views
5K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K