HW Simulator Tutorial
|
|
|
- Tracey Eaton
- 9 years ago
- Views:
Transcription
1 Hardware Simulator Tutorial This program is part of the software suite that accompanies the book The Elements of Computing Systems by Noam Nisan and Shimon Schocken MIT Press This software was developed by students at the Efi Arazi School of Computer Science at IDC Chief Software Architect: Yaron Ukrainitz Slide 1/49
2 Background The Elements of Computing Systems evolves around the construction of a complete computer system, done in the framework of a 1- or 2-semester course. In the first part of the book/course, we build the hardware platform of a simple yet powerful computer, called Hack. In the second part, we build the computer s software hierarchy, consisting of an assembler, a virtual machine, a simple Java-like language called Jack, a compiler for it, and a mini operating system, written in Jack. The book/course is completely self-contained, requiring only programming as a pre-requisite. The book s web site includes some 200 test programs, test scripts, and all the software tools necessary for doing all the projects. Slide 2/49
3 The book s software suite This tutorial is about the hardware simulator. (All the supplied tools are dual-platform: Xxx.bat starts Xxx in Windows, and Xxx.sh starts it in Unix) Simulators (HardwareSimulator, CPUEmulator, VMEmulator): Used to build hardware platforms and execute programs; Supplied by us. Translators (Assembler, JackCompiler): Used to translate from high-level to low-level; Developed by the students, using the book s specs; Executable solutions supplied by us. Other Bin: simulators and translators software; builtin: executable versions of all the logic gates and chips mentioned in the book; OS: executable version of the Jack OS; TextComparer: a text comparison utility. Slide 3/49
4 The Hack computer The hardware simulator described in this tutorial can be used to build and test many different hardware platforms. In this book, we focus on one particular computer, called Hack. Hack -- a 16-bit computer equipped with a screen and a keyboard -- resembles hand-held computers like game machines, PDA s, and cellular telephones. The first 5 chapters of the book specify the elementary gates, combinational chips, sequential chips, and hardware architecture of the Hack computer. All these modules can be built and tested using the hardware simulator described in this tutorial. That is how hardware engineers build chips for real: first, the hardware s designed, tested, and optimized on a software simulator. Only then, the resulting gate logic is committed to silicon. Slide 4/49
5 Hardware Simulation Tutorial I. Getting started II. Test scripts III. Built-in chips IV. Clocked chips V. GUI-empowered chips VI. Debugging tools VII. The Hack Platform Relevant reading (from The Elements of Computing Systems ): Chapter 1: Boolean Logic Appendix A: Hardware Description Language Appendix B: Test Scripting Language Slide 5/49
6 Hardware Simulation Tutorial Part I: Getting Started Slide 6/49
7 Chip Definition (.hdl file) chip interface /** /** Exclusive-or gate. out out = a xor xor b */ */ CHIP CHIP Xor Xor { IN IN a, a, b; b; OUT OUT out; } // // Implementation missing. Chip interface: Name of the chip Names of its input and output pins Documentation of the intended chip operation Typically supplied by the chip architect; similar to an API, or a contract. Slide 7/49
8 Chip Definition (.hdl file) chip interface /** /** Exclusive-or gate. out out = a xor xor b */ */ CHIP CHIP Xor Xor { IN IN a, a, b; b; OUT OUT out; chip implementation } PARTS: Not(in=a, out=nota); Not(in=b, out=notb); And(a=a, b=notb, out=w1); And(a=nota, b=b, out=w2); Or(a=w1, b=w2, out=out); Any given chip can be implemented in several different ways. This particular implementation is based on: Xor(a,b) = Or(And(a,Not(b)), And(b,Not(a))) Not, And, Or: Internal parts (previously built chips), invoked by the HDL programmer nota, notb, w1, w2: internal pins, created and named by the HDL programmer; used to connect internal parts. Slide 8/49
9 Loading a Chip Navigate to a directory and select an.hdl file. Slide 9/49
10 Loading a Chip Names and current values of the chip s input pins; To change their values, enter the new values here. Names and current values of the chip s output pins; Calculated by the simulator; readonly. Names and current values of the chip s internal pins (used to connect the chip s parts, forming the chip s logic); Calculated by the simulator; read-only. Read-only view of the loaded.hdl file; Defines the chip logic; To edit it, use an external text editor. Slide 10/49
11 Exploring the Chip Logic 1. Click the PARTS keyword 2. A table pops up, showing the chip s internal parts (lower-level chips) and whether they are: Primitive ( given ) or composite (user-defined) Clocked (sequential) or unclocked (combinational) Slide 11/49
12 Exploring the Chip Logic 1. Click any one of the chip PARTS 2. A table pops up, showing the input/output pins of the selected part (actually, its API), and their current values; A convenient debugging tool. Slide 12/49
13 Interactive Chip Testing Recalc 1. User: changes the values of some input pins 2. Simulator: responds by: Darkening the output and internal pins, to indicate that the displayed values are no longer valid Enabling the eval (calculator-shaped) button. 3. User: Clicked the eval button 4. Simulator: re-calculates the values of the chip s internal and output pins (i.e. applies the chip logic to the new input values) 5. To continue interactive testing, enter new values into the input pins and click the eval button. Slide 13/49
14 Hardware Simulation Tutorial Part II: Test Scripts Slide 14/49
15 Test Scripts load load Xor.hdl, output-file Xor.out, compare-to Xor.cmp, output-list a%b3.1.3 b%b3.1.3 out%b3.1.3; set set a 0, 0, set set b 0, 0, eval, output; set set a 0, 0, set set b 1, 1, eval, output; Etc. Etc. Generated output file (Xor.out) a b out out Test scripts: Are used for specifying, automating and replicating Init chip testing Are supplied for every chip mentioned in the book (so you don t have to write them) Can effect, batch-style, any operation that Simulation step can be done interactively Are written in a simple language described in Appendix B of the book Can Simulation create step an output file that records the results of the chip test If the script specifies a compare file, the simulator will compare the.out file to the.cmp file, line by line. Slide 15/49
16 Loading a Script To load a new script (.tst file), click this button; Interactive loading of the chip itself (.hdl file) may not be necessary, since the test script typically contains a load chip command. Slide 16/49
17 Script Controls Executes the next simulation step Pauses the script execution Multi-step execution, until a pause Controls the script execution speed Script = series of simulation Resets the script steps, each ending with a semicolon. Slide 17/49
18 Running a Script Typical init code: 1. Loads a chip definition (.hdl) file 2. Initializes an output (.out) file 3. Specifies a compare (.cmp) file 4. Declares an output line format. Script execution flow Slide 18/49
19 Running a Script Comparison of the output lines to the lines of the.cmp file are reported. Script execution ends Slide 19/49
20 Viewing Output and Compare Files Observation: This output file looks like a Xor truth table Conclusion: the chip logic (Xor.hdl) is apparently correct (but not necessarily efficient). Slide 20/49
21 Hardware Simulation Tutorial Part III: Built-in Chips Slide 21/49
22 Built-In Chips General A built-in chip has an HDL interface and a Java implementation (e.g. here: Mux16.class) The name of the Java class is specified following the BUILTIN keyword Built-In implementations of all the chips that appear in he book are supplied in the tools/buitin directory. // // Mux16 gate gate (example) CHIP CHIP Mux16 { IN IN a[16],b[16],sel; OUT OUT out[16]; BUILTIN Mux16; } Built-in chips are used to: Implement primitive gates (in the computer built in this book: Nand and DFF) Implement chips that have peripheral side effects (like I/O devices) Implement chips that feature a GUI (for debugging) Provide the functionality of chips that the user did not implement for some reason Improve simulation speed and save memory (when used as parts in complex chips) Facilitate behavioral simulation of a chip before actually building it in HDL Built-in chips can be used either explicitly, or implicitly. Slide 22/49
23 Explicit Use of Built-in Chips The chip is loaded from the tools/buitin directory (includes executable versions of all the chips mentioned in the book). Standard interface. Built-in implementation. Slide 23/49
24 Implicit Use of Built-in Chips /** /** Exclusive-or gate. gate. out out = a xor xor b */ */ CHIP CHIP Xor Xor { IN IN a, a, b; b; OUT OUT out; out; PARTS: PARTS: Not(in=a,out=Nota); Not(in=b,out=Notb); And(a=a,b=Notb,out=aNotb); And(a=Nota,b=b,out=bNota); Or(a=aNotb,b=bNota,out=out); } When any HDL file is loaded, the simulator parses its definition. For each internal chip Xxx(...) mentioned in the PARTS section, the simulator looks for an Xxx.hdl file in the same directory (e.g. Not.hdl, And.hdl, and Or.hdl in this example). If Xxx.hdl is found in the current directory (e.g. if it was also written by the user), the simulator uses its HDL logic in the evaluation of the overall chip. If Xxx.hdl is not found in the current directory, the simulator attempts to invoke the file tools/builtin/xxx.hdl instead. And since tools/builtin includes executable versions of all the chips mentioned in the book, it is possible to build and test any of these chips before first building their lower-level parts. Slide 24/49
25 Hardware Simulation Tutorial Part IV: Clocked Chips (Sequential Logic) Slide 25/49
26 Clocked (Sequential) Chips The implementation of clocked chips is based on sequential logic The operation of clocked chips is regulated by a master clock signal: In our jargon, a clock cycle = tick-phase (low), followed by a tock-phase (high) During a tick-tock, the internal states of all the clocked chips are allowed to change, but their outputs are latched At the beginning of the next tick, the outputs of all the clocked chips in the architecture commit to the new values In a real computer, the clock is implemented by an oscillator; in simulators, clock cycles can be simulated either manually by the user, or repeatedly by a test script. Slide 26/49
27 The D-Flip-Flop (DFF) Gate /** /** Data Data Flip-flop: * out(t)=in(t-1) * where t is is the the time time unit. */ */ CHIP CHIP DFF DFF { IN IN in; in; OUT OUT out; } BUILTIN DFF; CLOCKED in, in, out; DFF: A primitive memory gate that can remember a state over clock cycles Can serve as the basic building block of all the clocked chips in a computer. Clocked chips Clocked chips include registers, RAM devices, counters, and the CPU The simulator knows that the loaded chip is clocked when one or more of its pins is declared clocked, or one or more of its parts (or sub-parts, recursively) is a clocked chip In the hardware platform built in the book, all the clocked chips are based, directly or indirectly, on (many instances of) built-in DFF gates. Slide 27/49
28 Simulating Clocked Chips Clocked (sequential) chips are clock-regulated. Therefore, the standard way to test a clocked chip is to set its input pins to some values (as with combinational chips), simulate the progression of the clock, and watch how the chip logic responds to the ticks and the tocks. For example, consider the simulation of an 8-word random-access memory chip (RAM8). Since this built-in chip also happens to be GUI- empowered, the simulator displays its GUI A built-in, clocked chip (RAM8) is loaded (More about GUI-empowered chips, soon) Slide 28/49
29 Simulating Clocked Chips 3. User: clicks the clock icon again (tock) 1. User: enters some input values and clicks the clock icon once (tick) A built-in, clocked chip (RAM8) is loaded 4. Simulator: commits the chip s output pin to the value of the chip s internal state. 2. Simulator: changes the internal state of the chip, but note that the chip s output pin is not yet effected. Slide 29/49
30 Simulating Clocked Chips Using a Test Script Single-action tick-tock Controls the script speed, and thus the simulated clock speed, and thus the overall chip execution speed Tick-tocks repeatedly and infinitely Default script: always loaded when the simulator starts running; The logic of the default script simply runs the clock repeatedly; Hence, executing the default script has the effect of causing the clock to go through an infinite train of tics and tocks. This, in turn, causes all the clocked chip parts of the loaded chip to react to clock cycles, repeatedly. Slide 30/49
31 Hardware Simulation Tutorial Part V: GUI-Empowered chips Slide 31/49
32 Built-in Chips with GUI Effects 2. If the loaded chip or some of its parts have GUI side-effects, the simulator displays the GUI s here. For each GUI-empowered built-in chip that appears in the definition of the loaded chip, the simulator does its best to put GUI the chip of the GUI built-in in this area. Screen.hdl chip The actual GUI s behaviors are then effected by the Java classes that implement the built-in chips. 1. A chip whose parts include built-in chips was loaded into the simulator (ignore the chip logic for now) GUI of the built-in RAM16K.hdl chip GUI of the built-in Keyboard.hdl chip Slide 32/49
33 The Logic of the GUIDemo Chip RAM16K, Screen, & Keyboard are built-in chips with GUI side-effects // // Demo Demo of of built-in chips with with GUI GUI effects CHIP CHIP GUIDemo { IN IN in[16],load,address[15]; OUT OUT out[16]; PARTS: RAM16K(in=in,load=load,address=address[0..13],out=null); Screen(in=in,load=load,address=address[0..12],out=null); Keyboard(out=null); } Effect: When the simulator evaluates this chip, it displays the GUI sideeffects of its built-in chip parts Chip logic: The only purpose of this demo chip is to force the simulator to show the GUI of some built-in chips. Other than that, the chip logic is meaningless: it simultaneously feeds the 16-bit data input (in) into the RAM16K and the Screen chips, and it does nothing with the keyboard. Slide 33/49
34 GUIDemo Chip in Action 2. User: runs the clock black pixels are drawn beginning in row = 156 col = User enters: in = 1 (=16 1 s in binary) address = 5012 load = 1 Explanation: According to the specification of the computer architecture 3. described The chip in logic the book, the pixels of the physical routes screen the inare value continuously refreshed from simultaneously 8K RAM-intresident memory map implemented the Screenby chip the and Screen.hdl chip. The exact the RAM16K mapping chip between this memory chip and the actual pixels is specified in Chapter 5. The refresh process is carried out by the simulator. Slide 34/49
35 Hardware Simulation Tutorial Part VI: Debugging tools Slide 35/49
36 System Variables The simulator recognizes and maintains the following variables: Time: the number of time-units (clock-cycles) that elapsed since the script started running is stored in the variable time Pins: the values of all the input, output, and internal pins of the simulated chip are accessible as variables, using the names of the pins in the HDL code GUI elements: the values stored in the states of GUI-empowered built-in chips can be accessed via variables. For example, the value of register 3 of the RAM8 chip can be accessed via RAM8[3]. All these variables can be used in scripts and breakpoints, for debugging. Slide 36/49
37 Breakpoints 1. Open the breakpoints panel 2. Previouslydeclared breakpoints 3. To update an existing breakpoint, double-click it 3. Add, delete, or update breakpoints The breakpoints logic: Breakpoint = (variable, value) When the specified variable in some breakpoint reaches its specified value, the script pauses and a message is displayed A powerful debugging tool. Slide 37/49
38 Scripts for Testing the Topmost Computer chip load load Computer.hdl ROM32K ROM32K load load Max.hack, output-file ComputerMax.out, compare-to ComputerMax.cmp, output-list time%s1.4.1 reset%b2.1.2 ARegister[]%D1.7.1 DRegister[]%D1.7.1 PC[]%D0.4.0 RAM16K[0]%D1.7.1 RAM16K[1]%D1.7.1 RAM16K[2]%D1.7.1; breakpoint PC PC 10; 10; // // First First run: run: compute compute max(3,5) max(3,5) set set RAM16K[0] 3, 3, set set RAM16K[1] 5, 5, output; output; repeat repeat { tick, tick, tock, tock, output; output; } // // Reset Reset the the PC PC (preparing for for // // second second run) run) set set reset reset 1, 1, tick, tick, tock, tock, output; output; // // Etc. Etc. clear-breakpoints; Scripts that test the CPU chip or the Computer chip described in the book usually start by loading a machine-language program (.asm or.hack file) into the ROM32K chip The rest of the script typically uses various features like: Output files Loops Breakpoints Variables manipulation tick, tock Etc. All these features are described in Appendix B of the book (Test Scripting Language). Slide 38/49
39 Visual Options Program flow: animates the flow of the currently loaded program Program & data flow: animates the flow of the current program and the data flow throughout the GUI elements displayed on the screen No animation (default): program and data flow are not animated. Tip: When running programs on the CPU or Computer chip, any animation effects slow down the simulation considerably. Format of displayed pin values: Decimal (default) Hexadecimal Binary Script: displays the current test script Output: displays the generated output file Compare: displays the supplied comparison file Screen: displays the GUI effects of built-in chips, if any. Slide 39/49
40 Hardware Simulation Tutorial Part VII: The Hack Hardware Platform Slide 40/49
41 Hack: a General-Purpose 16-bit Computer Sample applications running on the Hack computer: Hang Man Maze Pong Grades Stats These programs (and many more) were written in the Jack programming language, running in the Jack OS environment over the Hack hardware platform. The hardware platform is built in chapters 1-5, and the software hierarchy in chapters Slide 41/49
42 The Hack Chip-Set and Hardware Platform Elementary logic gates (Project 1): Nand (primitive) Not And Or Xor Mux Dmux Not16 And16 Or16 Mux16 Or8Way Mux4Way16 Mux8Way16 DMux4Way DMux8Way Combinational chips (Project 2): HalfAdder FullAdder Add16 Inc16 ALU Sequential chips (Project 3): DFF (primitive) Bit Register RAM8 RAM64 RAM512 RAM4K RAM16K PC Computer Architecture (Project 5): Memory CPU Computer Most of these chips are generic, meaning that they can be used in the construction of many different computers. The Hack chip-set and hardware platform can be built using the hardware simulator, starting with primitive Nand.hdl and DFF.hdl gates and culminating in the Computer.hdl chip. This construction is described in chapters 1,2,3,5 of the book, and carried out in the respective projects. Slide 42/49
43 Aside: H.D. Thoreau about chips, bugs, and close observation: I was surprised to find that the chips were covered with such combatants, that it was not a duellum, but a bellum, a war between two races of ants, the red always pitted against the black, and frequently two red ones to one black. The legions of these Myrmidons covered all the hills and vales in my wood-yard, and the ground was already strewn with the dead and dying, both red and black. It was the only battle which I have ever witnessed, the only battlefield I ever trod while the battle was raging; internecine war; the red republicans on the one hand, and the black imperialists on the other. On every side they were engaged in deadly combat, yet without any noise that I could hear, and human soldiers never fought so resolutely... The more you think of it, the less the difference. And certainly there is not the fight recorded in Concord history, at least, if in the history of America, that will bear a moment s comparison with this, whether for the numbers engaged in it, or for the patriotism and heroism displayed. From Brute Neighbors, Walden (1854). Slide 43/49
Mistakes are the portals of discovery. James Joyce (1882 1941)
Appendix B: Test Scripting Language Mistakes are the portals of discovery. James Joyce (1882 1941) Testing is a critically important element of systems development, and one that typically gets little attention
Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction
ASSEMBLY PROGRAMMING ON A VIRTUAL COMPUTER
ASSEMBLY PROGRAMMING ON A VIRTUAL COMPUTER Pierre A. von Kaenel Mathematics and Computer Science Department Skidmore College Saratoga Springs, NY 12866 (518) 580-5292 [email protected] ABSTRACT This paper
1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.
File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one
OPERATING SYSTEM SERVICES
OPERATING SYSTEM SERVICES USER INTERFACE Command line interface(cli):uses text commands and a method for entering them Batch interface(bi):commands and directives to control those commands are entered
Objectives. Chapter 2: Operating-System Structures. Operating System Services (Cont.) Operating System Services. Operating System Services (Cont.
Objectives To describe the services an operating system provides to users, processes, and other systems To discuss the various ways of structuring an operating system Chapter 2: Operating-System Structures
Digital Electronics Detailed Outline
Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept
An Introduction to MPLAB Integrated Development Environment
An Introduction to MPLAB Integrated Development Environment 2004 Microchip Technology Incorporated An introduction to MPLAB Integrated Development Environment Slide 1 This seminar is an introduction to
Lab 1: Introduction to Xilinx ISE Tutorial
Lab 1: Introduction to Xilinx ISE Tutorial This tutorial will introduce the reader to the Xilinx ISE software. Stepby-step instructions will be given to guide the reader through generating a project, creating
Figure 1: Graphical example of a mergesort 1.
CSE 30321 Computer Architecture I Fall 2011 Lab 02: Procedure Calls in MIPS Assembly Programming and Performance Total Points: 100 points due to its complexity, this lab will weight more heavily in your
CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson
CS 3530 Operating Systems L02 OS Intro Part 1 Dr. Ken Hoganson Chapter 1 Basic Concepts of Operating Systems Computer Systems A computer system consists of two basic types of components: Hardware components,
SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.
SKP16C62P Tutorial 1 Software Development Process using HEW Renesas Technology America Inc. 1 Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW (Highperformance
CHAPTER 3 Boolean Algebra and Digital Logic
CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4
CS3600 SYSTEMS AND NETWORKS
CS3600 SYSTEMS AND NETWORKS NORTHEASTERN UNIVERSITY Lecture 2: Operating System Structures Prof. Alan Mislove ([email protected]) Operating System Services Operating systems provide an environment for
MICROPROCESSOR. Exclusive for IACE Students www.iace.co.in iacehyd.blogspot.in Ph: 9700077455/422 Page 1
MICROPROCESSOR A microprocessor incorporates the functions of a computer s central processing unit (CPU) on a single Integrated (IC), or at most a few integrated circuit. It is a multipurpose, programmable
3. Programming the STM32F4-Discovery
1 3. Programming the STM32F4-Discovery The programming environment including the settings for compiling and programming are described. 3.1. Hardware - The programming interface A program for a microcontroller
Fall 2006 CS/ECE 333 Lab 1 Programming in SRC Assembly
Lab Objectives: Fall 2006 CS/ECE 333 Lab 1 Programming in SRC Assembly 1. How to assemble an assembly language program for the SRC using the SRC assembler. 2. How to simulate and debug programs using the
Generating MIF files
Generating MIF files Introduction In order to load our handwritten (or compiler generated) MIPS assembly problems into our instruction ROM, we need a way to assemble them into machine language and then
150127-Microprocessor & Assembly Language
Chapter 3 Z80 Microprocessor Architecture The Z 80 is one of the most talented 8 bit microprocessors, and many microprocessor-based systems are designed around the Z80. The Z80 microprocessor needs an
DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB
DsPIC HOW-TO GUIDE Creating & Debugging a Project in MPLAB Contents at a Glance 1. Introduction of MPLAB... 4 2. Development Tools... 5 3. Getting Started... 6 3.1. Create a Project... 8 3.2. Start MPLAB...
PCB Project (*.PrjPcb)
Project Essentials Summary The basis of every design captured in Altium Designer is the project. This application note outlines the different kinds of projects, techniques for working on projects and how
Lab 1: Full Adder 0.0
Lab 1: Full Adder 0.0 Introduction In this lab you will design a simple digital circuit called a full adder. You will then use logic gates to draw a schematic for the circuit. Finally, you will verify
COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design
PH-315 COMINATIONAL and SEUENTIAL LOGIC CIRCUITS Hardware implementation and software design A La Rosa I PURPOSE: To familiarize with combinational and sequential logic circuits Combinational circuits
Chapter 3: Operating-System Structures. System Components Operating System Services System Calls System Programs System Structure Virtual Machines
Chapter 3: Operating-System Structures System Components Operating System Services System Calls System Programs System Structure Virtual Machines Operating System Concepts 3.1 Common System Components
Thomas Jefferson High School for Science and Technology Program of Studies Foundations of Computer Science. Unit of Study / Textbook Correlation
Thomas Jefferson High School for Science and Technology Program of Studies Foundations of Computer Science updated 03/08/2012 Unit 1: JKarel 8 weeks http://www.fcps.edu/is/pos/documents/hs/compsci.htm
FORDHAM UNIVERSITY CISC 3593. Dept. of Computer and Info. Science Spring, 2011. Lab 2. The Full-Adder
FORDHAM UNIVERSITY CISC 3593 Fordham College Lincoln Center Computer Organization Dept. of Computer and Info. Science Spring, 2011 Lab 2 The Full-Adder 1 Introduction In this lab, the student will construct
Computer Organization
Basics Machine, software, and program design JPC and JWD 2002 McGraw-Hill, Inc. Computer Organization CPU - central processing unit Where decisions are made, computations are performed, and input/output
Operating system Dr. Shroouq J.
3 OPERATING SYSTEM STRUCTURES An operating system provides the environment within which programs are executed. The design of a new operating system is a major task. The goals of the system must be well
CS420: Operating Systems OS Services & System Calls
NK YORK COLLEGE OF PENNSYLVANIA HG OK 2 YORK COLLEGE OF PENNSYLVAN OS Services & System Calls James Moscola Department of Physical Sciences York College of Pennsylvania Based on Operating System Concepts,
Levels of Programming Languages. Gerald Penn CSC 324
Levels of Programming Languages Gerald Penn CSC 324 Levels of Programming Language Microcode Machine code Assembly Language Low-level Programming Language High-level Programming Language Levels of Programming
Best Practises for LabVIEW FPGA Design Flow. uk.ni.com ireland.ni.com
Best Practises for LabVIEW FPGA Design Flow 1 Agenda Overall Application Design Flow Host, Real-Time and FPGA LabVIEW FPGA Architecture Development FPGA Design Flow Common FPGA Architectures Testing and
Lecture 8: Synchronous Digital Systems
Lecture 8: Synchronous Digital Systems The distinguishing feature of a synchronous digital system is that the circuit only changes in response to a system clock. For example, consider the edge triggered
Desktop, Web and Mobile Testing Tutorials
Desktop, Web and Mobile Testing Tutorials * Windows and the Windows logo are trademarks of the Microsoft group of companies. 2 About the Tutorial With TestComplete, you can test applications of three major
Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course
Session ENG 206-6 Design and Development of Virtual Instrument (VI) Modules for an Introductory Digital Logic Course Nikunja Swain, Ph.D., PE South Carolina State University [email protected] Raghu Korrapati,
RAPID PROTOTYPING OF DIGITAL SYSTEMS Second Edition
RAPID PROTOTYPING OF DIGITAL SYSTEMS Second Edition A Tutorial Approach James O. Hamblen Georgia Institute of Technology Michael D. Furman Georgia Institute of Technology KLUWER ACADEMIC PUBLISHERS Boston
Creating a Project with PSoC Designer
Creating a Project with PSoC Designer PSoC Designer is two tools in one. It combines a full featured integrated development environment (IDE) with a powerful visual programming interface. The two tools
Building Applications Using Micro Focus COBOL
Building Applications Using Micro Focus COBOL Abstract If you look through the Micro Focus COBOL documentation, you will see many different executable file types referenced: int, gnt, exe, dll and others.
EE8205: Embedded Computer System Electrical and Computer Engineering, Ryerson University. Multitasking ARM-Applications with uvision and RTX
EE8205: Embedded Computer System Electrical and Computer Engineering, Ryerson University Multitasking ARM-Applications with uvision and RTX 1. Objectives The purpose of this lab is to lab is to introduce
Programming Logic controllers
Programming Logic controllers Programmable Logic Controller (PLC) is a microprocessor based system that uses programmable memory to store instructions and implement functions such as logic, sequencing,
CSE 141L Computer Architecture Lab Fall 2003. Lecture 2
CSE 141L Computer Architecture Lab Fall 2003 Lecture 2 Pramod V. Argade CSE141L: Computer Architecture Lab Instructor: TA: Readers: Pramod V. Argade ([email protected]) Office Hour: Tue./Thu. 9:30-10:30
Topics. Introduction. Java History CS 146. Introduction to Programming and Algorithms Module 1. Module Objectives
Introduction to Programming and Algorithms Module 1 CS 146 Sam Houston State University Dr. Tim McGuire Module Objectives To understand: the necessity of programming, differences between hardware and software,
Compiler I: Syntax Analysis Human Thought
Course map Compiler I: Syntax Analysis Human Thought Abstract design Chapters 9, 12 H.L. Language & Operating Sys. Compiler Chapters 10-11 Virtual Machine Software hierarchy Translator Chapters 7-8 Assembly
PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1
UNIT 22: PROGRAMMABLE LOGIC CONTROLLERS Unit code: A/601/1625 QCF level: 4 Credit value: 15 OUTCOME 3 PART 1 This work covers part of outcome 3 of the Edexcel standard module: Outcome 3 is the most demanding
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
Outline. hardware components programming environments. installing Python executing Python code. decimal and binary notations running Sage
Outline 1 Computer Architecture hardware components programming environments 2 Getting Started with Python installing Python executing Python code 3 Number Systems decimal and binary notations running
GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8
GETTING STARTED WITH PROGRAMMABLE LOGIC DEVICES, THE 16V8 AND 20V8 Robert G. Brown All Rights Reserved August 25, 2000 Alta Engineering 58 Cedar Lane New Hartford, CT 06057-2905 (860) 489-8003 www.alta-engineering.com
Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14
LogicWorks 4 Tutorials Jianjian Song Department of Electrical and Computer Engineering Rose-Hulman Institute of Technology March 23 Table of Contents LogicWorks 4 Installation and update...2 2 Tutorial
EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors
EXPERIMENT 4. Parallel Adders, Subtractors, and Complementors I. Introduction I.a. Objectives In this experiment, parallel adders, subtractors and complementors will be designed and investigated. In the
Let s put together a Manual Processor
Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce
Designing a Graphical User Interface
Designing a Graphical User Interface 1 Designing a Graphical User Interface James Hunter Michigan State University ECE 480 Design Team 6 5 April 2013 Summary The purpose of this application note is to
Digital Systems. Syllabus 8/18/2010 1
Digital Systems Syllabus 1 Course Description: This course covers the design and implementation of digital systems. Topics include: combinational and sequential digital circuits, minimization methods,
CS311 Lecture: Sequential Circuits
CS311 Lecture: Sequential Circuits Last revised 8/15/2007 Objectives: 1. To introduce asynchronous and synchronous flip-flops (latches and pulsetriggered, plus asynchronous preset/clear) 2. To introduce
Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas
Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count
4 Machine Language. Make everything as simple as possible, but not simpler. Albert Einstein (1879 1955)
4 Machine Language Make everything as simple as possible, but not simpler. Albert Einstein (1879 1955) A computer can be described constructively, by laying out its hardware platform and explaining how
Chapter 6. Inside the System Unit. What You Will Learn... Computers Are Your Future. What You Will Learn... Describing Hardware Performance
What You Will Learn... Computers Are Your Future Chapter 6 Understand how computers represent data Understand the measurements used to describe data transfer rates and data storage capacity List the components
High-Level Language. Building a Modern Computer From First Principles. www.nand2tetris.org
High-Level Language Building a Modern Computer From First Principles www.nand2tetris.org Elements of Computing Systems, Nisan & Schocken, MIT Press, www.nand2tetris.org, Chapter 9: High-Level Language
B.Sc.(Computer Science) and. B.Sc.(IT) Effective From July 2011
NEW Detailed Syllabus of B.Sc.(Computer Science) and B.Sc.(IT) Effective From July 2011 SEMESTER SYSTEM Scheme & Syllabus for B.Sc. (CS) Pass and Hons. Course Effective from July 2011 and onwards CLASS
Computer System: User s View. Computer System Components: High Level View. Input. Output. Computer. Computer System: Motherboard Level
System: User s View System Components: High Level View Input Output 1 System: Motherboard Level 2 Components: Interconnection I/O MEMORY 3 4 Organization Registers ALU CU 5 6 1 Input/Output I/O MEMORY
Systems I: Computer Organization and Architecture
Systems I: Computer Organization and Architecture Lecture 9 - Register Transfer and Microoperations Microoperations Digital systems are modular in nature, with modules containing registers, decoders, arithmetic
Operating Systems 4 th Class
Operating Systems 4 th Class Lecture 1 Operating Systems Operating systems are essential part of any computer system. Therefore, a course in operating systems is an essential part of any computer science
Machine Architecture and Number Systems. Major Computer Components. Schematic Diagram of a Computer. The CPU. The Bus. Main Memory.
1 Topics Machine Architecture and Number Systems Major Computer Components Bits, Bytes, and Words The Decimal Number System The Binary Number System Converting from Decimal to Binary Major Computer Components
AC 2007-2027: A PROCESSOR DESIGN PROJECT FOR A FIRST COURSE IN COMPUTER ORGANIZATION
AC 2007-2027: A PROCESSOR DESIGN PROJECT FOR A FIRST COURSE IN COMPUTER ORGANIZATION Michael Black, American University Manoj Franklin, University of Maryland-College Park American Society for Engineering
Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill
Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill Objectives: Analyze the operation of sequential logic circuits. Understand the operation of digital counters.
Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language
Chapter 4 Register Transfer and Microoperations Section 4.1 Register Transfer Language Digital systems are composed of modules that are constructed from digital components, such as registers, decoders,
Instructor Özgür ZEYDAN BEU Dept. of Enve. Eng. http://cevre.beun.edu.tr/zeydan/ CIV 112 Computer Programming Lecture Notes (1)
Instructor Özgür ZEYDAN BEU Dept. of Enve. Eng. http://cevre.beun.edu.tr/zeydan/ CIV 112 Computer Programming Lecture Notes (1) Computer Programming A computer is a programmable machine. This means it
Lesson 1 - Creating a Project
Lesson 1 - Creating a Project The goals for this lesson are: Create a project A project is a collection entity for an HDL design under specification or test. Projects ease interaction with the tool and
Life Cycle of a Memory Request. Ring Example: 2 requests for lock 17
Life Cycle of a Memory Request (1) Use AQR or AQW to place address in AQ (2) If A[31]==0, check for hit in DCache Ring (3) Read Hit: place cache word in RQ; Write Hit: replace cache word with WQ RDDest/RDreturn
CPS221 Lecture: Operating System Structure; Virtual Machines
Objectives CPS221 Lecture: Operating System Structure; Virtual Machines 1. To discuss various ways of structuring the operating system proper 2. To discuss virtual machines Materials: 1. Projectable of
Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.
Objectives Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop. describe how such a flip-flop can be SET and RESET. describe the disadvantage
Operating System Structures
COP 4610: Introduction to Operating Systems (Spring 2015) Operating System Structures Zhi Wang Florida State University Content Operating system services User interface System calls System programs Operating
Example of Standard API
16 Example of Standard API System Call Implementation Typically, a number associated with each system call System call interface maintains a table indexed according to these numbers The system call interface
Advanced Computer Architecture-CS501. Computer Systems Design and Architecture 2.1, 2.2, 3.2
Lecture Handout Computer Architecture Lecture No. 2 Reading Material Vincent P. Heuring&Harry F. Jordan Chapter 2,Chapter3 Computer Systems Design and Architecture 2.1, 2.2, 3.2 Summary 1) A taxonomy of
İSTANBUL AYDIN UNIVERSITY
İSTANBUL AYDIN UNIVERSITY FACULTY OF ENGİNEERİNG SOFTWARE ENGINEERING THE PROJECT OF THE INSTRUCTION SET COMPUTER ORGANIZATION GÖZDE ARAS B1205.090015 Instructor: Prof. Dr. HASAN HÜSEYİN BALIK DECEMBER
CHAPTER 7: The CPU and Memory
CHAPTER 7: The CPU and Memory The Architecture of Computer Hardware, Systems Software & Networking: An Information Technology Approach 4th Edition, Irv Englander John Wiley and Sons 2010 PowerPoint slides
Operating System Components
Lecture Overview Operating system software introduction OS components OS services OS structure Operating Systems - April 24, 2001 Operating System Components Process management Memory management Secondary
USER GUIDE Version 2.0
USER GUIDE Version 2.0 TABLE of CONTENTS Introduction... 3 Hardware Overview... 3 Software Overview... 4 DAYSHIFT Panel... 5 Settings Panel... 6 Setup Tab... 6 Configure... 6 Show User Guide... 6 Preview
Gates, Circuits, and Boolean Algebra
Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks
The components. E3: Digital electronics. Goals:
E3: Digital electronics Goals: Basic understanding of logic circuits. Become familiar with the most common digital components and their use. Equipment: 1 st. LED bridge 1 st. 7-segment display. 2 st. IC
Two's Complement Adder/Subtractor Lab L03
Two's Complement Adder/Subtractor Lab L03 Introduction Computers are usually designed to perform indirect subtraction instead of direct subtraction. Adding -B to A is equivalent to subtracting B from A,
Scicos is a Scilab toolbox included in the Scilab package. The Scicos editor can be opened by the scicos command
7 Getting Started 7.1 Construction of a Simple Diagram Scicos contains a graphical editor that can be used to construct block diagram models of dynamical systems. The blocks can come from various palettes
Course Structure of Three Year Degree B.A Programme in Computer Application under Semester System of Dibrugarh University (General Programme)
Course Structure of Three Year Degree B.A Programme in Computer Application under Semester System of Dibrugarh University (General Programme) COURSE LECTURE DURATION(LD) /paper SEMESTER-I 1. Course Code:CAN101
Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )
Sequential Logic (Materials taken from: Principles of Computer Hardware by Alan Clements ) Sequential vs. Combinational Circuits Combinatorial circuits: their outputs are computed entirely from their present
Embedded Software development Process and Tools: Lesson-3 Host and Target Machines
Embedded Software development Process and Tools: Lesson-3 Host and Target Machines 1 1. Host-Target Based Development Approach 2 Host-Target System Development Approach During development process, a host
Fundamentals of Programming and Software Development Lesson Objectives
Lesson Unit 1: INTRODUCTION TO COMPUTERS Computer History Create a timeline illustrating the most significant contributions to computing technology Describe the history and evolution of the computer Identify
INTRODUCTION TO DIGITAL SYSTEMS. IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE
INTRODUCTION TO DIGITAL SYSTEMS 1 DESCRIPTION AND DESIGN OF DIGITAL SYSTEMS FORMAL BASIS: SWITCHING ALGEBRA IMPLEMENTATION: MODULES (ICs) AND NETWORKS IMPLEMENTATION OF ALGORITHMS IN HARDWARE COURSE EMPHASIS:
How to test and debug an ASP.NET application
Chapter 4 How to test and debug an ASP.NET application 113 4 How to test and debug an ASP.NET application If you ve done much programming, you know that testing and debugging are often the most difficult
SIMATIC. PLC Simulation for S7-300 and S7-400. Preface, Contents Installing the PLC. Simulation Software Getting Started with
SIMATIC PLC Simulation for S7-300 and S7-400 Manual Preface, Contents Installing the PLC 1 Simulation Software Getting Started with 2 S7-PLCSIM Running a Program on the 3 Simulated PLC Monitoring and Modifying
(Refer Slide Time: 02:39)
Computer Architecture Prof. Anshul Kumar Department of Computer Science and Engineering, Indian Institute of Technology, Delhi Lecture - 1 Introduction Welcome to this course on computer architecture.
Chapter 2 Basic Structure of Computers. Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan
Chapter 2 Basic Structure of Computers Jin-Fu Li Department of Electrical Engineering National Central University Jungli, Taiwan Outline Functional Units Basic Operational Concepts Bus Structures Software
Online Development of Digital Logic Design Course
Online Development of Digital Logic Design Course M. Mohandes, M. Dawoud, S. Al Amoudi, A. Abul Hussain Electrical Engineering Department & Deanship of Academic Development King Fahd University of Petroleum
Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial
Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial Embedded Processor Hardware Design January 29 th 2015. VIVADO TUTORIAL 1 Table of Contents Requirements... 3 Part 1:
Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts)
Dr. Greg Tumbush, [email protected] Lab #5: Design Example: Keypad Scanner and Encoder - Part 1 (120 pts) Objective The objective of lab assignments 5 through 9 are to systematically design and implement
Traditional IBM Mainframe Operating Principles
C H A P T E R 1 7 Traditional IBM Mainframe Operating Principles WHEN YOU FINISH READING THIS CHAPTER YOU SHOULD BE ABLE TO: Distinguish between an absolute address and a relative address. Briefly explain
ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering
ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering Daniel Estrada Taylor, Dev Harrington, Sekou Harris December 2012 Abstract This document is the final report for ENGI E1112,
Lecture N -1- PHYS 3330. Microcontrollers
Lecture N -1- PHYS 3330 Microcontrollers If you need more than a handful of logic gates to accomplish the task at hand, you likely should use a microcontroller instead of discrete logic gates 1. Microcontrollers
Chapter 1. Introduction to ios Development. Objectives: Touch on the history of ios and the devices that support this operating system.
Chapter 1 Introduction to ios Development Objectives: Touch on the history of ios and the devices that support this operating system. Understand the different types of Apple Developer accounts. Introduce
Debugging. Common Semantic Errors ESE112. Java Library. It is highly unlikely that you will write code that will work on the first go
Debugging ESE112 Java Programming: API, Psuedo-Code, Scope It is highly unlikely that you will write code that will work on the first go Bugs or errors Syntax Fixable if you learn to read compiler error
VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED.
VMWare Workstation 11 Installation MICROSOFT WINDOWS SERVER 2008 R2 STANDARD ENTERPRISE ED. Starting Vmware Workstation Go to the start menu and start the VMware Workstation program. *If you are using
Memory unit. 2 k words. n bits per word
9- k address lines Read n data input lines Memory unit 2 k words n bits per word n data output lines 24 Pearson Education, Inc M Morris Mano & Charles R Kime 9-2 Memory address Binary Decimal Memory contents
(Refer Slide Time: 00:01:16 min)
Digital Computer Organization Prof. P. K. Biswas Department of Electronic & Electrical Communication Engineering Indian Institute of Technology, Kharagpur Lecture No. # 04 CPU Design: Tirning & Control
