Design a CPU

所在平台: Udemy

课程主页: https://www.udemy.com/course/design-a-cpu/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:设计中央处理器(CPU) 课程概述:如果您想了解计算机的工作原理,您来对地方了。本课程将带您逐步设计一个简单的中央处理器(CPU),这是现代计算机的核心部分。我们将在名为Logisim的在线工具中设计和模拟CPU的各个模块。您可以下载该工具,在自己的计算机上模拟CPU,或者使用我的模拟文件加载并在工具中运行,随时可以选择观看视频或仅收听视频。课程提供78种语言的字幕,如果您的语言不在其中,请与我联系,我会添加。非英语母语者也可以尝试使用字幕并以0.75倍速度播放视频。 首先,我们会下载免费的设计工具Logisim,并了解其工作原理。然后进入设计和模拟的乐趣,我们将设计和模拟以下模块: - 简单逻辑门 - 1位内存单元 - 8位内存单元 - 8位寄存器 - 解码器 - 随机存取存储器(RAM) - 算术逻辑单元(ALU) - 时钟 接下来,我们将稍微放松一下,讨论“计算机能否回答生命、宇宙和一切问题?”我们将探讨计算机的定义及其能力与限制,并在接下来的两个视频中对此进行解答。 之后,我们将继续设计CPU,专门设计和模拟最复杂的部分——控制单元。在这里,您将获得令人惊喜的时刻,能自豪地说“我知道计算机是如何工作的!”这部分包括建立控制单元内的指令集,包括: - 取指执行周期 - ALU指令 - 加载与存储指令 - 数据指令 - 跳转寄存器指令 - 跳转地址指令 - 跳转条件指令 - 清除标志指令 接下来,我们将在Microsoft Excel中构建一个汇编器(汇编器是什么?到那时您将了解,并轻松掌握!)。随后,我们将用Excel VBA建模CPU,并基于此创建一个汇编语言调试器,帮助我们编写汇编语言程序。最终,您将能加载第一个汇编语言程序,一个用于将两个数字相乘的算法(虽然听起来不起眼,但您可以设计自己的算法并在自己的CPU上模拟)。 最后,我们进行顶部级别的模拟,加载CPU RAM(内存)并实时观察程序运行情况。您可以选择快速执行代码,也可以逐步查看CPU内部的每个细节,这一切都是您刚设计的CPU! 课程 bônus 部分将不定期添加额外材料,我将扩展CPU从8位到16位,创建更多运行在CPU上的汇编语言算法,并详细解释汇编器和调试器中的VBA代码(以及更多内容)。本课程参考了《But How Do It Know》的书中关于CPU设计的原则。您不需要购买此书以跟随课程,但我强烈推荐该书。如果您想知道计算机的核心是什么以及它是如何工作的,那么这门课程将非常适合您!

课程评论(0条)

课程详情

If you want to know how a computer works then this course is for you. I work through the design of a simple CPU (Central Processing Unit) which is the beating heart of a modern computer. I design and simulate each block of the CPU in an online tool called Logisim. You can download the tool and simulate the CPU on your own computer or if you like you can take a copy of my simulation files and just load them into the tool and simulate what you have learned in the videos or just listen along to the videos (it's up to you). I have added subtitles for 78 different languages. If your language is not there then get in touch and I will add it in. If you are not a native English speaker then try the subtitles and run the videos at 0.75x speed.First we download the free design tool called LOGISIM in which we design and simulate our CPU and take a look around the tool and show you how it works. Then the fun begins. We design and simulate the following blocksSimple logic gates1 bit memory cell8 bit memory cell8 bit registerDecoder RAM (Random Access Memory)ALU (Arithmetic Logic Unit)ClockWe then take a break from our hard work (pheeewww!!!) and ask the question , ' Can a computer answer the question of Life the Universe and Everything ? ' We look at some of the ideas behind what a computer is and what it can and more importantly cannot do! We answer this question in the next two videos.AlgorithmsTuring MachinesAfter this little break we then get back to designing our CPU. We design and simulate the most difficult section called the Control Unit. This is where the MAGIC happens and you will get that amazing EUREKA moment when you can say, ' I KNOW HOW A COMPUTER WORKS!!! ' In this section we build up the INSTRUCTION SET within the CONTROL UNIT. This INSTRUCTION SET consists of:FETCH EXECUTE CycleALU InstructionsLOAD and STORE InstructionsDATA InstructionJUMP REGISTER InstructionJUMP ADDRESS InstructionJUMP IF InstructionCLEAR FLAGS InstructionWe then build up an ASSEMBLER in Microsoft Excel (what's an assembler ? Once you get to this point you will know and you will be home and dry!)We then model the CPU using Excel VBA and from this build an ASSEMBLY LANGUAGE DEBUGGER. This will help us write our ASSEMBLY LANGUAGE PROGRAMS. Finally we are in a position to load the CPU up with our first assembly language program. An algorithm that multiplies 2 numbers together (might not sound like much but you can then design your own algorithms and simulate them on YOUR OWN CPU).We then look at the Top Level Simulation. We load up the CPU RAM (memory) with our first program and watch it running through the program live right in front of our eyes. You can let it execute the code quickly or you can step through a 0 and a 1 at a time and see every little detail of what is happening inside the CPU that YOU have just designed!!!Also keep a look out in the bonus section for extra material that I will be periodically adding. I expand the CPU from 8 bits to 16 bits , create some more assembly language algorithms that run on the CPU and explain in detail the VBA code from the assembler and debugger (PLUS MORE TO COME). This course follows the CPU design in the book ButHowDoItKnow (The Basic Principles of Computers for Everyone). THIS COURSE IS FEATURED ON THE AUTHORS WEBSITE. You do not need to buy the book to follow the course but I would highly recommend the book. IF YOU WANT TO KNOW WHAT LIES AT THE HEART OF A COMPUTER AND HOW IT WORKS THEN THIS IS THE COURSE FOR YOU!!!

课程标签

0人关注该课程

主题相关的课程