Editing
The Von Neumann Architecture
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Applying</span> == '''Modeling 'The Fetch-Execute Cycle' (Visualizing how a CPU processes a 'Stored' program):''' <syntaxhighlight lang="python"> def cpu_cycle(memory, registers): """ Simulates the Fetch-Decode-Execute cycle. """ pc = 0 # Program Counter while pc < len(memory): # 1. FETCH instruction = memory[pc] # 2. DECODE & EXECUTE command, val = instruction.split(" ") if command == "LOAD": registers["A"] = int(val) elif command == "ADD": registers["A"] += int(val) elif command == "STORE": print(f"STORED Result: {registers['A']}") pc += 1 # Increment to next instruction # Program stored in memory: [LOAD 10, ADD 5, STORE 0] mem = ["LOAD 10", "ADD 5", "STORE 0"] regs = {"A": 0} cpu_cycle(mem, regs) </syntaxhighlight> ; Architecture Landmarks : '''ENIAC (1945)''' β The first "General Purpose" computer, but it was **NOT** Von Neumann (it had to be rewired by hand). : '''Manchester Baby (1948)''' β The first-ever "Stored-Program" computer to successfully run a program, proving Von Neumann was right. : '''Intel 4004 (1971)''' β The first "Microprocessor," which put the whole Von Neumann CPU on a "Single Chip," making PCs possible. : '''GPU (Graphics Processing Unit)''' β A "Non-Von Neumann" helper. While a CPU is a "Master of One" (Serial), a GPU is a "Master of Thousands" (Parallel), doing millions of tiny math problems at once. </div> <div style="background-color: #8B4500; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information