Difference between revisions of "BSc: Computer Architecture"
I.konyukhov (talk | contribs) |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | = Computer Architecture = |
||
− | + | = Fundamentals of Computer Architecture = |
|
− | * |
+ | * '''Course name''': Fundamentals of Computer Architecture |
+ | * '''Code discipline''': XXX |
||
+ | * '''Subject area''': Computer Science Fundamentals |
||
− | == |
+ | == Short Description == |
+ | This course covers the fundamental principles of modern computer systems and software/hardware interaction, the representation and execution of computer instructions, computer arithmetics. |
||
+ | == Prerequisites == |
||
− | === Key concepts of the class === |
||
+ | === Prerequisite subjects === |
||
− | * The fundamental principles for modern computer systems |
||
+ | * Informatics |
||
− | * Computer instructions, their representation, and execution |
||
+ | * Basic programming skills |
||
− | * Computer arithmetics |
||
+ | * The basics of Boolean logic |
||
− | === What is the purpose of this course? === |
||
+ | === Prerequisite topics === |
||
− | The course covers the fundamental principles of computer systems design. We first overview the key hardware components of a modern computer system, available performance metrics, and the general principles of computer architecture. We then discuss the representation and execution of computer instructions, instruction set architecture, the translation hierarchy of a high-level program into machine code. We also cover the elements of computer arithmetics, logic circuits, including combinational and sequential logic circuits. These theoretical principles are illustrated by using MIPS instruction set architecture, FPGA, and Verilog HDL programming language during the labs. We then study in details simple and pipelined implementation schemes of a processor, the idea of a pipelined execution, related hazards and their solutions. We complete the course by introducing several advanced topics, including computer security and vulnerabilities, GPU programming, and modern principles for memory hierarchy design. |
||
− | === Course objectives based on Bloom’s taxonomy === |
||
+ | == Course Topics == |
||
− | === - What should a student remember at the end of the course? === |
||
+ | {| class="wikitable" |
||
+ | |+ Course Sections and Topics |
||
+ | |- |
||
+ | ! Section !! Topics within the section |
||
+ | |- |
||
+ | | Introduction to the Fundamental Concepts of Computer Architecture || |
||
+ | # Key Components of a Computer System |
||
+ | # Fundamental Ideas of Computer Architecture |
||
+ | # Translation Hierarchy of a High-Level Program into Machine Code |
||
+ | # Performance Metrics of a Computer System |
||
+ | |- |
||
+ | | Computational Logic Implementation in a Computer System || |
||
+ | # Logic Gates and Boolean Algebra |
||
+ | # Logic Circuits |
||
+ | # Combinational and Sequential Logic |
||
+ | # Number Systems |
||
+ | # The Basics of Verilog Hardware Description Language (HDL) Programming |
||
+ | |- |
||
+ | | Instruction Representation and Execution in a Computer System || |
||
+ | # Instruction Set Architecture (ISA) |
||
+ | # The Overview of MIPS ISA |
||
+ | # Types of MIPS Instructions and Their Representation in a Binary Format |
||
+ | # Sample MIPS Assembly Programs |
||
+ | |- |
||
+ | | Computer Arithmetics || |
||
+ | # Basic Arithmetic Operations (Bitwise, Shifts, Multiplication, Division, and Others) |
||
+ | # Overflow and Underflow Problems for Arithmetic Operations |
||
+ | # Arithmetic Operations with Floation Point Numbers |
||
+ | # Problems Related to Precision and Conversion for Floating Point Numbers |
||
+ | |- |
||
+ | | Processor Architecture || |
||
+ | # Key Components of a Processor: Control and Arithmetic Logic Unit, Registers |
||
+ | # Processor Datapath and Control Signals |
||
+ | # The Notion of a Pipelined Execution, Pipeline Hazards, and Their Solutions |
||
+ | # A Simple and Pipelined Implementation Schemes of a Processor |
||
+ | |- |
||
+ | | Advanced Topics || |
||
+ | # Computer Security and Vulnerabilities |
||
+ | # Graphics Processing Unit (GPU) and General-Purpose GPU Programming |
||
+ | # Modern Approaches for Memory Hierarchy Design |
||
+ | |} |
||
+ | == Intended Learning Outcomes (ILOs) == |
||
+ | === What is the main purpose of this course? === |
||
+ | The main purpose of this course is to cover the fundamental theoretical principles of computer systems design. We first overview the key hardware components of a modern computer system, available performance metrics, and the general principles of computer architecture. We then discuss the representation and execution of computer instructions, instruction set architecture, the translation hierarchy of a high-level program into machine code. We also cover the elements of computer arithmetics, logic circuits, including combinational and sequential logic circuits. These theoretical principles are illustrated by using MIPS instruction set architecture, FPGA, and Verilog HDL programming language during the labs. We then study in details simple and pipelined implementation schemes of a processor, the idea of a pipelined execution, related hazards and their solutions. We complete the course by introducing several advanced topics, including computer security and vulnerabilities, GPU programming, and modern principles for memory hierarchy design. |
||
+ | |||
+ | === ILOs defined at three levels === |
||
+ | |||
+ | ==== Level 1: What concepts should a student know/remember/explain? ==== |
||
+ | By the end of the course, the students should be able to ... |
||
* Key components of a modern computer system |
* Key components of a modern computer system |
||
* Available performance metrics for computer systems |
* Available performance metrics for computer systems |
||
Line 26: | Line 76: | ||
* Representation formats for computer instructions |
* Representation formats for computer instructions |
||
− | === |
+ | ==== Level 2: What basic practical skills should a student be able to perform? ==== |
+ | By the end of the course, the students should be able to ... |
||
− | |||
* Fundamental principles of computer architecture (Moore’s law, memory hierarchy, multiprocessing, speculative execution, and others) |
* Fundamental principles of computer architecture (Moore’s law, memory hierarchy, multiprocessing, speculative execution, and others) |
||
* The design scheme of a modern processor |
* The design scheme of a modern processor |
||
Line 33: | Line 83: | ||
* Program representation and execution by a computer system |
* Program representation and execution by a computer system |
||
− | === |
+ | ==== Level 3: What complex comprehensive skills should a student be able to apply in real-life scenarios? ==== |
+ | By the end of the course, the students should be able to ... |
||
− | |||
* The design skills of logic circuits by using Verilog HDL programming language |
* The design skills of logic circuits by using Verilog HDL programming language |
||
* FPGA programming by using Quartus Prime software |
* FPGA programming by using Quartus Prime software |
||
− | * MIPS assembly programming (including MARS simulator) |
+ | * MIPS assembly programming (including MARS simulator) |
+ | == Grading == |
||
− | === Course |
+ | === Course grading range === |
+ | {| class="wikitable" |
||
− | |||
− | + | |+ |
|
− | |+ Course grade breakdown |
||
− | ! |
||
− | ! |
||
− | !align="center"| '''Proposed points''' |
||
|- |
|- |
||
+ | ! Grade !! Range !! Description of performance |
||
− | | Labs/seminar classes |
||
− | | 20 |
||
− | |align="center"| 20 |
||
|- |
|- |
||
+ | | A. Excellent || 90-100 || - |
||
− | | Interim performance assessment |
||
− | | 30 |
||
− | |align="center"| 40 |
||
|- |
|- |
||
+ | | B. Good || 70-89 || - |
||
− | | Exams |
||
− | | |
+ | |- |
+ | | C. Satisfactory || 60-69 || - |
||
− | |align="center"| 40 |
||
+ | |- |
||
+ | | D. Poor || 0-59 || - |
||
|} |
|} |
||
+ | === Course activities and grading breakdown === |
||
− | === Grades range === |
||
+ | {| class="wikitable" |
||
− | |||
− | + | |+ |
|
− | |+ Course grading range |
||
− | ! |
||
− | ! |
||
− | !align="center"| '''Proposed range''' |
||
|- |
|- |
||
+ | ! Activity Type !! Percentage of the overall course grade |
||
− | | A. Excellent |
||
− | | 90-100 |
||
− | |align="center"| 90-100 |
||
|- |
|- |
||
+ | | Labs/seminar Classes || 15 |
||
− | | B. Good |
||
− | | 75-89 |
||
− | |align="center"| 70-89 |
||
|- |
|- |
||
+ | | Regular quizzes during tutorials || 5 |
||
− | | C. Satisfactory |
||
− | | 60-74 |
||
− | |align="center"| 60-69 |
||
|- |
|- |
||
+ | | Midterm Exam || 20 |
||
− | | D. Poor |
||
− | | |
+ | |- |
+ | | Final Exam || 60 |
||
− | |align="center"| 0-59 |
||
+ | |- |
||
+ | | Bonus points for optional FPGA projects || 2 |
||
|} |
|} |
||
+ | === Recommendations for students on how to succeed in the course === |
||
− | Each assignment will be assessed on a scale 0-10, where 6 is the minimum passing grade. |
||
− | Labs/seminar classes points are divided into 10% Quiz and 10% Labs deliverable. Quiz and lab will be conducted every week and top 10 quizzes will be considered for final grade. Each lab is evaluated (0-2 points), where 0 is given for absence or lack of progress, 1 is given for approximately 50% of progress and 2 is given for perfect or almost perfect work on lab. Three worst labs will be excluded from consideration. |
||
+ | == Resources, literature and reference materials == |
||
− | Exams will be conducted written as well as oral to assess the individual. The grading, though, is not a simple linear combination of the components above. In particular: Failing any part of the evaluation will trigger a failure in the entire course If there are not failing components the final grade will be computed as a weighted average of the components above approximated at the highest second digit and then rounded to the closest integer, and finally assigning A to 9, B to 7, and C to 6. |
||
− | === |
+ | === Open access resources === |
− | |||
− | * |
||
− | * |
||
* Handouts supplied by the instructor |
* Handouts supplied by the instructor |
||
* Online resources shared by instructor |
* Online resources shared by instructor |
||
− | == |
+ | === Closed access resources === |
+ | |||
+ | |||
+ | === Software and tools used within the course === |
||
+ | = Teaching Methodology: Methods, techniques, & activities = |
||
− | The main sections of the course and approximate hour distribution between them is as follows: |
||
+ | == Activities and Teaching Methods == |
||
− | {| |
||
+ | {| class="wikitable" |
||
− | |+ Course Sections |
||
+ | |+ Activities within each section |
||
− | !align="center"| '''Section''' |
||
− | ! '''Section Title''' |
||
− | !align="center"| '''Teaching Hours''' |
||
|- |
|- |
||
+ | ! Learning Activities !! Section 1 !! Section 2 !! Section 3 !! Section 4 !! Section 5 !! Section 6 |
||
− | |align="center"| 1 |
||
− | | Introduction to the Fundamental Concepts of Computer Architecture |
||
− | |align="center"| 18 |
||
|- |
|- |
||
+ | | Development of individual parts of software product code || 1 || 1 || 1 || 1 || 1 || 1 |
||
− | |align="center"| 2 |
||
− | | Computational Logic Implementation in a Computer System |
||
− | |align="center"| 15 |
||
|- |
|- |
||
+ | | Homework and group projects || 1 || 1 || 1 || 1 || 1 || 1 |
||
− | |align="center"| 3 |
||
− | | Instruction Representation and Execution in a Computer System |
||
− | |align="center"| 15 |
||
|- |
|- |
||
+ | | Midterm evaluation || 1 || 1 || 1 || 0 || 0 || 0 |
||
− | |align="center"| 4 |
||
− | | Computer Arithmetics |
||
− | |align="center"| 15 |
||
|- |
|- |
||
+ | | Testing (written or computer based) || 1 || 1 || 1 || 1 || 1 || 1 |
||
− | |align="center"| 5 |
||
− | | Processor Architecture |
||
− | |align="center"| 15 |
||
|- |
|- |
||
+ | | Oral polls || 1 || 1 || 1 || 1 || 1 || 1 |
||
− | |align="center"| 6 |
||
+ | |- |
||
− | | Advanced Topics |
||
+ | | Discussions || 1 || 1 || 1 || 1 || 1 || 1 |
||
− | |align="center"| 6 |
||
− | |} |
+ | |} |
+ | == Formative Assessment and Course Activities == |
||
− | === |
+ | === Ongoing performance assessment === |
− | |||
− | ==== Section title: ==== |
||
− | |||
− | Introduction to the Fundamental Concepts of Computer Architecture |
||
− | |||
− | === Topics covered in this section: === |
||
− | |||
− | * Key Components of a Computer System |
||
− | * Fundamental Ideas of Computer Architecture |
||
− | * Translation Hierarchy of a High-Level Program into Machine Code |
||
− | * Performance Metrics of a Computer System |
||
− | |||
− | === What forms of evaluation were used to test students’ performance in this section? === |
||
− | |||
− | <div class="tabular"> |
||
− | |||
− | <span>|a|c|</span> & '''Yes/No'''<br /> |
||
− | Development of individual parts of software product code & 1<br /> |
||
− | Homework and group projects & 1<br /> |
||
− | Midterm evaluation & 1<br /> |
||
− | Testing (written or computer based) & 1<br /> |
||
− | Reports & 0<br /> |
||
− | Essays & 0<br /> |
||
− | Oral polls & 1<br /> |
||
− | Discussions & 1<br /> |
||
− | |||
− | |||
− | |||
− | </div> |
||
− | === Typical questions for ongoing performance evaluation within this section === |
||
− | |||
− | Sample quistions from weekly quizzes: |
||
− | |||
− | # Do you agree that main memory (RAM) is a non-volatile memory? |
||
− | # There are several types of memory available for computers, such as CPU cache, main memory (RAM), SSD, etc. What are the key differences between them? |
||
− | # What is the key principle behind the Von Neumann Architecture? |
||
− | # Specify a correct order for tools used during high-level program translation and execution: Compiler, Assebler, Linker, Loader; |
||
− | # Let a program run on a computer comprised of one processor only. Let us now increase the number of processors up to m>1, so that multiple instructions of that program can be executed in parallel. Assume that all processor speeds are the same. Do you agree that a program can never execute slower on m processors, as compared to the case of one processor? |
||
− | |||
− | === Typical questions for seminar classes (labs) within this section === |
||
− | |||
− | # Demonstration and description of key elements of an FPGA board (memory unit, PCI slot, clock generator, etc.); |
||
− | # Description of specific features of FPGA as compared to other integrated circuit devices; |
||
− | # Writing basic code for FPGA board; |
||
− | # Configuration and usage of the basic functionality in Quartus Prime software |
||
− | |||
− | === Test questions for final assessment in this section === |
||
+ | ==== Section 1 ==== |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | |- |
||
+ | ! Activity Type !! Content !! Is Graded? |
||
+ | |- |
||
+ | | Question || Do you agree that main memory (RAM) is a non-volatile memory? || 1 |
||
+ | |- |
||
+ | | Question || There are several types of memory available for computers, such as CPU cache, main memory (RAM), SSD, etc. What are the key differences between them? || 1 |
||
+ | |- |
||
+ | | Question || What is the key principle behind the Von Neumann Architecture? || 1 |
||
+ | |- |
||
+ | | Question || Specify a correct order for tools used during high-level program translation and execution: Compiler, Assebler, Linker, Loader; || 1 |
||
+ | |- |
||
+ | | Question || Let a program run on a computer comprised of one processor only. Let us now increase the number of processors up to m>1, so that multiple instructions of that program can be executed in parallel. Assume that all processor speeds are the same. Do you agree that a program can never execute slower on m processors, as compared to the case of one processor? || 1 |
||
+ | |- |
||
+ | | Question || Demonstration and description of key elements of an FPGA board (memory unit, PCI slot, clock generator, etc.); || 0 |
||
+ | |- |
||
+ | | Question || Description of specific features of FPGA as compared to other integrated circuit devices; || 0 |
||
+ | |- |
||
+ | | Question || Writing basic code for FPGA board; || 0 |
||
+ | |- |
||
+ | | Question || Configuration and usage of the basic functionality in Quartus Prime software || 0 |
||
+ | |} |
||
+ | ==== Section 2 ==== |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | |- |
||
+ | ! Activity Type !! Content !! Is Graded? |
||
+ | |- |
||
+ | | Question || Convert decimal number 123 into base-5 format; || 1 |
||
+ | |- |
||
+ | | Question || Do you agree that a S/R latch and a D flip-flop have different storage capacities? || 1 |
||
+ | |- |
||
+ | | Question || Choose the key differences between SRAM and DRAM memory types: cost, power consumption, volatility, access speed, storage capacity, etc.; || 1 |
||
+ | |- |
||
+ | | Question || Do you agree that one of the key differences between sequential and combinational logic circuits is the presence of memory elements? || 1 |
||
+ | |- |
||
+ | | Question || Questions regarding the basic logic gates; || 0 |
||
+ | |- |
||
+ | | Question || Assignments to design simple logic circuits with 2-3 logic gates on a white board; || 0 |
||
+ | |- |
||
+ | | Question || Programming assignments in Quartus Prime software, to design and compile simple logic circuits; || 0 |
||
+ | |- |
||
+ | | Question || Programming an FPGA board by using Verilog HDL in Quartus Prime environment, such as turning on or off leds based on a switch position; || 0 |
||
+ | |- |
||
+ | | Question || Questions regarding the difference between combinational and sequential logic circuits; || 0 |
||
+ | |} |
||
+ | ==== Section 3 ==== |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | |- |
||
+ | ! Activity Type !! Content !! Is Graded? |
||
+ | |- |
||
+ | | Question || How many bits are in one MIPS word? || 1 |
||
+ | |- |
||
+ | | Question || Which MIPS directive would you use to create a string data? || 1 |
||
+ | |- |
||
+ | | Question || For MIPS instruction set architecture (ISA), each register is reserved for a specific purpose. Describe the purpose of registers listed below: <math>v0, </math>s0-<math>s7, </math>t0-$t7; || 1 |
||
+ | |- |
||
+ | | Question || In MARS simulator for MIPS programming, all register values, that are displayed in the register viewer, start with prefix "0x". What is the meaning of this prefix? || 1 |
||
+ | |- |
||
+ | | Question || Print a "Hello, World!" message in a console; || 0 |
||
+ | |- |
||
+ | | Question || Computation of a simple arithmetic expression for integer parameters; || 0 |
||
+ | |- |
||
+ | | Question || Computation of the first 10 Fibonacci numbers; || 0 |
||
+ | |- |
||
+ | | Question || Implementation of more advanced program structures, such as conditional loops || 0 |
||
+ | |} |
||
+ | ==== Section 4 ==== |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | |- |
||
+ | ! Activity Type !! Content !! Is Graded? |
||
+ | |- |
||
+ | | Question || Assume that two MIPS registers, <math>s0 and </math>s1, contain the following binary data: <math>s0: 00100000; </math>s1: 01010101 (For simplicity, we assume 8-bit registers, rather that 32) What is the value of <math>s1 after the execution of the following instruction?: sll </math>s1, $s0, 4 || 1 |
||
+ | |- |
||
+ | | Question || What is a "register spilling" in the context of MIPS instruction set architecture? || 1 |
||
+ | |- |
||
+ | | Question || Do you agree with the following statement? In some cases, MIPS logical shift operations, sll and srl, can be used as an efficient alternative to multiplication and division operations, mul and div. || 1 |
||
+ | |- |
||
+ | | Question || Do you agree that overflow and underflow exceptions correspond to cases, when the result of an arithmetic operation surpasses and subceeds, respectively, the maximum and the minimum value for an appropriate data type returned by that arithmetic operation? || 1 |
||
+ | |- |
||
+ | | Question || Division of two floating-point numbers; || 0 |
||
+ | |- |
||
+ | | Question || Conversion of Fahrenheit into Celsius temperature, and vice versa; || 0 |
||
+ | |- |
||
+ | | Question || Computation of a sphere surphase area; || 0 |
||
+ | |- |
||
+ | | Question || Questions regarding the execution of arithmetic operations with interger and floating-point values || 0 |
||
+ | |} |
||
+ | ==== Section 5 ==== |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | |- |
||
+ | ! Activity Type !! Content !! Is Graded? |
||
+ | |- |
||
+ | | Question || Do you agree that the key motivation for the CPU pipelining is to speed-up the execution of a program by exploring multiple CPU cores? || 1 |
||
+ | |- |
||
+ | | Question || Which CPU block(s) is/are accessed during the execution of the following instruction? lw <math>1, 5(</math>2) || 1 |
||
+ | |- |
||
+ | | Question || What are 5 major stages of a pipelined instruction execution? || 1 |
||
+ | |- |
||
+ | | Question || Do you agree that, for a processor with 5 pipelined stages, the number of concurrently executed instructions is up to 4? || 1 |
||
+ | |- |
||
+ | | Question || There are several types of processors available, including single-cycle and multicycle.The major advantage of a single-cycle processor is the simplicity of its design. But what is its key drawback? || 1 |
||
+ | |- |
||
+ | | Question || Design of a testbench in ModelSim for Quartus Prime programming environment; || 0 |
||
+ | |- |
||
+ | | Question || The design of Half-Adder, Full-Adder, Ripple Carry Adder by using Verilog HDL in Quartus Prime || 0 |
||
+ | |- |
||
+ | | Question || Testing the correctness of Verilog HDL design by using ModelSim || 0 |
||
+ | |} |
||
+ | ==== Section 6 ==== |
||
+ | {| class="wikitable" |
||
+ | |+ |
||
+ | |- |
||
+ | ! Activity Type !! Content !! Is Graded? |
||
+ | |- |
||
+ | | Question || Cold boot attack explores vulnerabilities in a memory dump mechanism. What is a memory dump? || 1 |
||
+ | |- |
||
+ | | Question || Below is a list of possible vulnerability attacks. Choose the one(s) that explore(s) vulnerabilities in a speculative execution of modern processors: Meltdown, Foreshadow, Cold boot attack, Spectre, No choice is correct; || 1 |
||
+ | |- |
||
+ | | Question || Choose the most precise definition for a side-channel attack: An attack that explores vulnerabilities in the hardware implementation of a computer system, An attack that explores vulnerabilities in the software components of a computer system; || 1 |
||
+ | |- |
||
+ | | Question || Do you agree that Meltdown and Spectre vulnerabilities both explore race conditions in existing memory circuits? || 1 |
||
+ | |- |
||
+ | | Question || Programming assignment to implement Multiplexor using Verilog HDL in Quartus Prime; || 0 |
||
+ | |- |
||
+ | | Question || Performance optimization of a Verilog HDL design; || 0 |
||
+ | |- |
||
+ | | Question || The design of a simple Arithmetic-Logic Unit (ALU); || 0 |
||
+ | |- |
||
+ | | Question || Revision questions || 0 |
||
+ | |} |
||
+ | === Final assessment === |
||
+ | '''Section 1''' |
||
# Briefly describe the principles of Von Neumann architecture. Illustrate with a diagram. |
# Briefly describe the principles of Von Neumann architecture. Illustrate with a diagram. |
||
# Describe the steps that transform a program written in a high-level language such as C into a representation that is directly executed by a computer processor. Illustrate with a diagram; provide a brief description for each step. |
# Describe the steps that transform a program written in a high-level language such as C into a representation that is directly executed by a computer processor. Illustrate with a diagram; provide a brief description for each step. |
||
# Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5. P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2. Answer the following questions: a) Which processor has the highest performance expressed in instructions per second? b) If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions. c) We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction? |
# Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5. P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2. Answer the following questions: a) Which processor has the highest performance expressed in instructions per second? b) If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions. c) We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction? |
||
+ | '''Section 2''' |
||
− | |||
− | === Section 2 === |
||
− | |||
− | ==== Section title: ==== |
||
− | |||
− | Computational Logic Implementation in a Computer System |
||
− | |||
− | === Topics covered in this section: === |
||
− | |||
− | * Logic Gates and Boolean Algebra |
||
− | * Logic Circuits |
||
− | * Combinational and Sequential Logic |
||
− | * Number Systems |
||
− | * The Basics of Verilog Hardware Description Language (HDL) Programming |
||
− | |||
− | === What forms of evaluation were used to test students’ performance in this section? === |
||
− | |||
− | <div class="tabular"> |
||
− | |||
− | <span>|a|c|</span> & '''Yes/No'''<br /> |
||
− | Development of individual parts of software product code & 1<br /> |
||
− | Homework and group projects & 1<br /> |
||
− | Midterm evaluation & 1<br /> |
||
− | Testing (written or computer based) & 1<br /> |
||
− | Reports & 0<br /> |
||
− | Essays & 0<br /> |
||
− | Oral polls & 1<br /> |
||
− | Discussions & 1<br /> |
||
− | |||
− | |||
− | |||
− | </div> |
||
− | === Typical questions for ongoing performance evaluation within this section === |
||
− | |||
− | Sample questions from weekly quizzes: |
||
− | |||
− | # Convert decimal number 123 into base-5 format; |
||
− | # Do you agree that a S/R latch and a D flip-flop have different storage capacities? |
||
− | # Choose the key differences between SRAM and DRAM memory types: cost, power consumption, volatility, access speed, storage capacity, etc.; |
||
− | # Do you agree that one of the key differences between sequential and combinational logic circuits is the presence of memory elements? |
||
− | |||
− | === Typical questions for seminar classes (labs) within this section === |
||
− | |||
− | # Questions regarding the basic logic gates; |
||
− | # Assignments to design simple logic circuits with 2-3 logic gates on a white board; |
||
− | # Programming assignments in Quartus Prime software, to design and compile simple logic circuits; |
||
− | # Programming an FPGA board by using Verilog HDL in Quartus Prime environment, such as turning on or off leds based on a switch position; |
||
− | # Questions regarding the difference between combinational and sequential logic circuits; |
||
− | |||
− | === Test questions for final assessment in this section === |
||
− | |||
# Prove that the AND and NOT logic gates can be implemented by using only the NOR logic gate. |
# Prove that the AND and NOT logic gates can be implemented by using only the NOR logic gate. |
||
# What are the S/R latch and D latch? Draw the respective logic circuits. Describe the differences between them. |
# What are the S/R latch and D latch? Draw the respective logic circuits. Describe the differences between them. |
||
# Briefly describe the key difference(s) between combinational and sequential logic circuits. |
# Briefly describe the key difference(s) between combinational and sequential logic circuits. |
||
# Define what a multiplexor logic circuit is (with an arbitrary number of inputs). Provide a truth table for a 2-to-1 multiplexor. Provide a logic circuit implementing a 2-to-1 multiplexor, that uses AND, NOT, and OR logic gates. Describe a Verilog module implementing such a logic circuit of a 2-to-1 multiplexor. |
# Define what a multiplexor logic circuit is (with an arbitrary number of inputs). Provide a truth table for a 2-to-1 multiplexor. Provide a logic circuit implementing a 2-to-1 multiplexor, that uses AND, NOT, and OR logic gates. Describe a Verilog module implementing such a logic circuit of a 2-to-1 multiplexor. |
||
+ | '''Section 3''' |
||
− | |||
+ | # Translate the following MIPS code to C (or pseudocode). Assume that variables f, g, h, and i are assigned to registers <math>s0, </math>s1, <math>s2, and </math>s3, respectively. Code to translate: sub <math>t0, </math>s1, <math>s2; addi <math>t0, </math>t0, 3; add <math>s0, </math>s3, </math>t0 |
||
− | === Section 3 === |
||
+ | # Assume that two MIPS registers, <math>{\textstyle s0and}</math> s1, contain the following binary data (for simplicity, we assume 8-bit registers, rather that 32): <math>s0: 00100000; </math>s1: 01010101. What is the value of register <math>s1 after the execution of the following MIPS instruction?: sll </math>s1, $s0, 4. |
||
− | |||
− | ==== Section title: ==== |
||
− | |||
− | Instruction Representation and Execution in a Computer System |
||
− | |||
− | ==== Topics covered in this section: ==== |
||
− | |||
− | * Instruction Set Architecture (ISA) |
||
− | * The Overview of MIPS ISA |
||
− | * Types of MIPS Instructions and Their Representation in a Binary Format |
||
− | * Sample MIPS Assembly Programs |
||
− | |||
− | === What forms of evaluation were used to test students’ performance in this section? === |
||
− | |||
− | <div class="tabular"> |
||
− | |||
− | <span>|a|c|</span> & '''Yes/No'''<br /> |
||
− | Development of individual parts of software product code & 1<br /> |
||
− | Homework and group projects & 1<br /> |
||
− | Midterm evaluation & 1<br /> |
||
− | Testing (written or computer based) & 1<br /> |
||
− | Reports & 0<br /> |
||
− | Essays & 0<br /> |
||
− | Oral polls & 1<br /> |
||
− | Discussions & 1<br /> |
||
− | |||
− | |||
− | |||
− | </div> |
||
− | === Typical questions for ongoing performance evaluation within this section === |
||
− | |||
− | Sample questions from weekly quizzes: |
||
− | |||
− | # How many bits are in one MIPS word? |
||
− | # Which MIPS directive would you use to create a string data? |
||
− | # For MIPS instruction set architecture (ISA), each register is reserved for a specific purpose. Describe the purpose of registers listed below: $v0, $s0-$s7, $t0-$t7; |
||
− | # In MARS simulator for MIPS programming, all register values, that are displayed in the register viewer, start with prefix "0x". What is the meaning of this prefix? |
||
− | |||
− | ==== Typical questions for seminar classes (labs) within this section ==== |
||
− | |||
− | Sample MIPS programming assignments in MARS simulator: |
||
− | |||
− | # Print a "Hello, World!" message in a console; |
||
− | # Computation of a simple arithmetic expression for integer parameters; |
||
− | # Computation of the first 10 Fibonacci numbers; |
||
− | # Implementation of more advanced program structures, such as conditional loops |
||
− | |||
− | ==== Test questions for final assessment in this section ==== |
||
− | |||
− | # Translate the following MIPS code to C (or pseudocode). Assume that variables f, g, h, and i are assigned to registers $s0, $s1, $s2, and $s3, respectively. Code to translate: sub $t0, $s1, $s2; addi $t0, $t0, 3; add $s0, $s3, $t0 |
||
− | # Assume that two MIPS registers, <math display="inline">s0 and</math>s1, contain the following binary data (for simplicity, we assume 8-bit registers, rather that 32): $s0: 00100000; $s1: 01010101. What is the value of register $s1 after the execution of the following MIPS instruction?: sll $s1, $s0, 4. |
||
# List and describe the purpose of general-purpose MIPS registers. |
# List and describe the purpose of general-purpose MIPS registers. |
||
+ | '''Section 4''' |
||
− | |||
− | === Section 4 === |
||
− | |||
− | ==== Section title: ==== |
||
− | |||
− | Computer Arithmetics |
||
− | |||
− | ==== Topics covered in this section: ==== |
||
− | |||
− | * Basic Arithmetic Operations (Bitwise, Shifts, Multiplication, Division, and Others) |
||
− | * Overflow and Underflow Problems for Arithmetic Operations |
||
− | * Arithmetic Operations with Floation Point Numbers |
||
− | * Problems Related to Precision and Conversion for Floating Point Numbers |
||
− | |||
− | === What forms of evaluation were used to test students’ performance in this section? === |
||
− | |||
− | <div class="tabular"> |
||
− | |||
− | <span>|a|c|</span> & '''Yes/No'''<br /> |
||
− | Development of individual parts of software product code & 1<br /> |
||
− | Homework and group projects & 1<br /> |
||
− | Midterm evaluation & 0<br /> |
||
− | Testing (written or computer based) & 1<br /> |
||
− | Reports & 0<br /> |
||
− | Essays & 0<br /> |
||
− | Oral polls & 1<br /> |
||
− | Discussions & 1<br /> |
||
− | |||
− | |||
− | |||
− | </div> |
||
− | === Typical questions for ongoing performance evaluation within this section === |
||
− | |||
− | Sample questions from weekly quizzes: |
||
− | |||
− | # Assume that two MIPS registers, $s0 and $s1, contain the following binary data: $s0: 00100000; $s1: 01010101 (For simplicity, we assume 8-bit registers, rather that 32) What is the value of $s1 after the execution of the following instruction?: sll $s1, $s0, 4 |
||
− | # What is a "register spilling" in the context of MIPS instruction set architecture? |
||
− | # Do you agree with the following statement? In some cases, MIPS logical shift operations, sll and srl, can be used as an efficient alternative to multiplication and division operations, mul and div. |
||
− | # Do you agree that overflow and underflow exceptions correspond to cases, when the result of an arithmetic operation surpasses and subceeds, respectively, the maximum and the minimum value for an appropriate data type returned by that arithmetic operation? |
||
− | |||
− | ==== Typical questions for seminar classes (labs) within this section ==== |
||
− | |||
− | Sample MIPS programming assignments in MARS simulator, to practice floating-point operations: |
||
− | |||
− | # Division of two floating-point numbers; |
||
− | # Conversion of Fahrenheit into Celsius temperature, and vice versa; |
||
− | # Computation of a sphere surphase area; |
||
− | # Questions regarding the execution of arithmetic operations with interger and floating-point values |
||
− | |||
− | ==== Test questions for final assessment in this section ==== |
||
− | |||
# Briefly describe the overflow and underflow problems for arithmetic operations. |
# Briefly describe the overflow and underflow problems for arithmetic operations. |
||
# Describe the difference between executing arithmetic operations with integers and floating-point values for a MIPS processor. |
# Describe the difference between executing arithmetic operations with integers and floating-point values for a MIPS processor. |
||
# What is a precision problem for a floating-point operation? |
# What is a precision problem for a floating-point operation? |
||
+ | '''Section 5''' |
||
− | |||
− | === Section 5 === |
||
− | |||
− | ==== Section title: ==== |
||
− | |||
− | Processor Architecture |
||
− | |||
− | ==== Topics covered in this section: ==== |
||
− | |||
− | * Key Components of a Processor: Control and Arithmetic Logic Unit, Registers |
||
− | * Processor Datapath and Control Signals |
||
− | * The Notion of a Pipelined Execution, Pipeline Hazards, and Their Solutions |
||
− | * A Simple and Pipelined Implementation Schemes of a Processor |
||
− | |||
− | === What forms of evaluation were used to test students’ performance in this section? === |
||
− | |||
− | <div class="tabular"> |
||
− | |||
− | <span>|a|c|</span> & '''Yes/No'''<br /> |
||
− | Development of individual parts of software product code & 1<br /> |
||
− | Homework and group projects & 1<br /> |
||
− | Midterm evaluation & 0<br /> |
||
− | Testing (written or computer based) & 1<br /> |
||
− | Reports & 0<br /> |
||
− | Essays & 0<br /> |
||
− | Oral polls & 1<br /> |
||
− | Discussions & 1<br /> |
||
− | |||
− | |||
− | |||
− | </div> |
||
− | === Typical questions for ongoing performance evaluation within this section === |
||
− | |||
− | Sample questions from weekly quizzes: |
||
− | |||
− | # Do you agree that the key motivation for the CPU pipelining is to speed-up the execution of a program by exploring multiple CPU cores? |
||
− | # Which CPU block(s) is/are accessed during the execution of the following instruction? lw $1, 5($2) |
||
− | # What are 5 major stages of a pipelined instruction execution? |
||
− | # Do you agree that, for a processor with 5 pipelined stages, the number of concurrently executed instructions is up to 4? |
||
− | # There are several types of processors available, including single-cycle and multicycle.The major advantage of a single-cycle processor is the simplicity of its design. But what is its key drawback? |
||
− | |||
− | ==== Typical questions for seminar classes (labs) within this section ==== |
||
− | |||
− | # Design of a testbench in ModelSim for Quartus Prime programming environment; |
||
− | # The design of Half-Adder, Full-Adder, Ripple Carry Adder by using Verilog HDL in Quartus Prime |
||
− | # Testing the correctness of Verilog HDL design by using ModelSim |
||
− | |||
− | ==== Test questions for final assessment in this section ==== |
||
− | |||
# What is a Program Counter (PC) register of a processor? |
# What is a Program Counter (PC) register of a processor? |
||
# Describe the principle of a pipelined CPU execution. Provide a diagram illustrating the concept. Briefly describe the 5 key stages of a classical pipeline. |
# Describe the principle of a pipelined CPU execution. Provide a diagram illustrating the concept. Briefly describe the 5 key stages of a classical pipeline. |
||
# What are the key differences between Control Unit (CU) and Arithmetic Logic Unit (ALU) of a processor? Which purposes do they serve? |
# What are the key differences between Control Unit (CU) and Arithmetic Logic Unit (ALU) of a processor? Which purposes do they serve? |
||
# What is a CPU datapath? |
# What is a CPU datapath? |
||
+ | '''Section 6''' |
||
+ | # What is an out-of-order execution? What hardware features of CPU implementation, in addition to an out-of-order execution, are exploited by Meltdown vulnerability? How serious is Meltdown vulnerability? |
||
+ | # What is an instruction-level parallelism? |
||
+ | # Describe the idea of a general-purpose GPU programming. |
||
+ | # Briefly explain the working principles of a CPU cache. |
||
+ | # Discuss advantages and drawbacks of a hierarchical memory model for computer systems. |
||
− | === |
+ | === The retake exam === |
+ | '''Section 1''' |
||
− | + | '''Section 2''' |
|
+ | '''Section 3''' |
||
− | Advanced Topics |
||
+ | '''Section 4''' |
||
− | ==== Topics covered in this section: ==== |
||
+ | '''Section 5''' |
||
− | * Computer Security and Vulnerabilities |
||
− | * Graphics Processing Unit (GPU) and General-Purpose GPU Programming |
||
− | * Modern Approaches for Memory Hierarchy Design |
||
+ | '''Section 6''' |
||
− | === What forms of evaluation were used to test students’ performance in this section? === |
||
− | |||
− | {| |
||
− | !align="center"| '''Form''' |
||
− | !align="center"| '''Yes/No''' |
||
− | |- |
||
− | |align="center"| Development of individual parts of software product code |
||
− | |align="center"| 1 |
||
− | |- |
||
− | |align="center"| Homework and group projects |
||
− | |align="center"| 1 |
||
− | |- |
||
− | |align="center"| Midterm evaluation |
||
− | |align="center"| 0 |
||
− | |- |
||
− | |align="center"| Testing (written or computer based) |
||
− | |align="center"| 1 |
||
− | |- |
||
− | |align="center"| Reports |
||
− | |align="center"| 0 |
||
− | |- |
||
− | |align="center"| Essays |
||
− | |align="center"| 0 |
||
− | |- |
||
− | |align="center"| Oral polls |
||
− | |align="center"| 1 |
||
− | |- |
||
− | |align="center"| Discussions |
||
− | |align="center"| 1 |
||
− | |} |
||
− | |||
− | === Typical questions for ongoing performance evaluation within this section === |
||
− | |||
− | # Cold boot attack explores vulnerabilities in a memory dump mechanism. What is a memory dump? |
||
− | # Below is a list of possible vulnerability attacks. Choose the one(s) that explore(s) vulnerabilities in a speculative execution of modern processors: Meltdown, Foreshadow, Cold boot attack, Spectre, No choice is correct; |
||
− | # Choose the most precise definition for a side-channel attack: An attack that explores vulnerabilities in the hardware implementation of a computer system, An attack that explores vulnerabilities in the software components of a computer system; |
||
− | # Do you agree that Meltdown and Spectre vulnerabilities both explore race conditions in existing memory circuits? |
||
− | |||
− | ==== Typical questions for seminar classes (labs) within this section ==== |
||
− | |||
− | # Programming assignment to implement Multiplexor using Verilog HDL in Quartus Prime; |
||
− | # Performance optimization of a Verilog HDL design; |
||
− | # The design of a simple Arithmetic-Logic Unit (ALU); |
||
− | # Revision questions |
||
− | |||
− | ==== Test questions for final assessment in this section ==== |
||
− | |||
− | # What is an out-of-order execution? What hardware features of CPU implementation, in addition to an out-of-order execution, are exploited by Meltdown vulnerability? How serious is Meltdown vulnerability? |
||
− | # What is an instruction-level parallelism? |
||
− | # Describe the idea of a general-purpose GPU programming. |
||
− | # Briefly explain the working principles of a CPU cache. |
||
− | # Discuss advantages and drawbacks of a hierarchical memory model for computer systems. |
Latest revision as of 03:10, 15 September 2024
Fundamentals of Computer Architecture
- Course name: Fundamentals of Computer Architecture
- Code discipline: XXX
- Subject area: Computer Science Fundamentals
Short Description
This course covers the fundamental principles of modern computer systems and software/hardware interaction, the representation and execution of computer instructions, computer arithmetics.
Prerequisites
Prerequisite subjects
- Informatics
- Basic programming skills
- The basics of Boolean logic
Prerequisite topics
Course Topics
Section | Topics within the section |
---|---|
Introduction to the Fundamental Concepts of Computer Architecture |
|
Computational Logic Implementation in a Computer System |
|
Instruction Representation and Execution in a Computer System |
|
Computer Arithmetics |
|
Processor Architecture |
|
Advanced Topics |
|
Intended Learning Outcomes (ILOs)
What is the main purpose of this course?
The main purpose of this course is to cover the fundamental theoretical principles of computer systems design. We first overview the key hardware components of a modern computer system, available performance metrics, and the general principles of computer architecture. We then discuss the representation and execution of computer instructions, instruction set architecture, the translation hierarchy of a high-level program into machine code. We also cover the elements of computer arithmetics, logic circuits, including combinational and sequential logic circuits. These theoretical principles are illustrated by using MIPS instruction set architecture, FPGA, and Verilog HDL programming language during the labs. We then study in details simple and pipelined implementation schemes of a processor, the idea of a pipelined execution, related hazards and their solutions. We complete the course by introducing several advanced topics, including computer security and vulnerabilities, GPU programming, and modern principles for memory hierarchy design.
ILOs defined at three levels
Level 1: What concepts should a student know/remember/explain?
By the end of the course, the students should be able to ...
- Key components of a modern computer system
- Available performance metrics for computer systems
- Computer arithmetics operations, including floating point numbers
- Number systems and conversion between them
- Representation formats for computer instructions
Level 2: What basic practical skills should a student be able to perform?
By the end of the course, the students should be able to ...
- Fundamental principles of computer architecture (Moore’s law, memory hierarchy, multiprocessing, speculative execution, and others)
- The design scheme of a modern processor
- The interaction principles between software and hardware
- Program representation and execution by a computer system
Level 3: What complex comprehensive skills should a student be able to apply in real-life scenarios?
By the end of the course, the students should be able to ...
- The design skills of logic circuits by using Verilog HDL programming language
- FPGA programming by using Quartus Prime software
- MIPS assembly programming (including MARS simulator)
Grading
Course grading range
Grade | Range | Description of performance |
---|---|---|
A. Excellent | 90-100 | - |
B. Good | 70-89 | - |
C. Satisfactory | 60-69 | - |
D. Poor | 0-59 | - |
Course activities and grading breakdown
Activity Type | Percentage of the overall course grade |
---|---|
Labs/seminar Classes | 15 |
Regular quizzes during tutorials | 5 |
Midterm Exam | 20 |
Final Exam | 60 |
Bonus points for optional FPGA projects | 2 |
Recommendations for students on how to succeed in the course
Resources, literature and reference materials
Open access resources
- Handouts supplied by the instructor
- Online resources shared by instructor
Closed access resources
Software and tools used within the course
Teaching Methodology: Methods, techniques, & activities
Activities and Teaching Methods
Learning Activities | Section 1 | Section 2 | Section 3 | Section 4 | Section 5 | Section 6 |
---|---|---|---|---|---|---|
Development of individual parts of software product code | 1 | 1 | 1 | 1 | 1 | 1 |
Homework and group projects | 1 | 1 | 1 | 1 | 1 | 1 |
Midterm evaluation | 1 | 1 | 1 | 0 | 0 | 0 |
Testing (written or computer based) | 1 | 1 | 1 | 1 | 1 | 1 |
Oral polls | 1 | 1 | 1 | 1 | 1 | 1 |
Discussions | 1 | 1 | 1 | 1 | 1 | 1 |
Formative Assessment and Course Activities
Ongoing performance assessment
Section 1
Activity Type | Content | Is Graded? |
---|---|---|
Question | Do you agree that main memory (RAM) is a non-volatile memory? | 1 |
Question | There are several types of memory available for computers, such as CPU cache, main memory (RAM), SSD, etc. What are the key differences between them? | 1 |
Question | What is the key principle behind the Von Neumann Architecture? | 1 |
Question | Specify a correct order for tools used during high-level program translation and execution: Compiler, Assebler, Linker, Loader; | 1 |
Question | Let a program run on a computer comprised of one processor only. Let us now increase the number of processors up to m>1, so that multiple instructions of that program can be executed in parallel. Assume that all processor speeds are the same. Do you agree that a program can never execute slower on m processors, as compared to the case of one processor? | 1 |
Question | Demonstration and description of key elements of an FPGA board (memory unit, PCI slot, clock generator, etc.); | 0 |
Question | Description of specific features of FPGA as compared to other integrated circuit devices; | 0 |
Question | Writing basic code for FPGA board; | 0 |
Question | Configuration and usage of the basic functionality in Quartus Prime software | 0 |
Section 2
Activity Type | Content | Is Graded? |
---|---|---|
Question | Convert decimal number 123 into base-5 format; | 1 |
Question | Do you agree that a S/R latch and a D flip-flop have different storage capacities? | 1 |
Question | Choose the key differences between SRAM and DRAM memory types: cost, power consumption, volatility, access speed, storage capacity, etc.; | 1 |
Question | Do you agree that one of the key differences between sequential and combinational logic circuits is the presence of memory elements? | 1 |
Question | Questions regarding the basic logic gates; | 0 |
Question | Assignments to design simple logic circuits with 2-3 logic gates on a white board; | 0 |
Question | Programming assignments in Quartus Prime software, to design and compile simple logic circuits; | 0 |
Question | Programming an FPGA board by using Verilog HDL in Quartus Prime environment, such as turning on or off leds based on a switch position; | 0 |
Question | Questions regarding the difference between combinational and sequential logic circuits; | 0 |
Section 3
Activity Type | Content | Is Graded? |
---|---|---|
Question | How many bits are in one MIPS word? | 1 |
Question | Which MIPS directive would you use to create a string data? | 1 |
Question | For MIPS instruction set architecture (ISA), each register is reserved for a specific purpose. Describe the purpose of registers listed below: s0-t0-$t7; | 1 |
Question | In MARS simulator for MIPS programming, all register values, that are displayed in the register viewer, start with prefix "0x". What is the meaning of this prefix? | 1 |
Question | Print a "Hello, World!" message in a console; | 0 |
Question | Computation of a simple arithmetic expression for integer parameters; | 0 |
Question | Computation of the first 10 Fibonacci numbers; | 0 |
Question | Implementation of more advanced program structures, such as conditional loops | 0 |
Section 4
Activity Type | Content | Is Graded? |
---|---|---|
Question | Assume that two MIPS registers, s1, contain the following binary data: s1: 01010101 (For simplicity, we assume 8-bit registers, rather that 32) What is the value of s1, $s0, 4 | 1 |
Question | What is a "register spilling" in the context of MIPS instruction set architecture? | 1 |
Question | Do you agree with the following statement? In some cases, MIPS logical shift operations, sll and srl, can be used as an efficient alternative to multiplication and division operations, mul and div. | 1 |
Question | Do you agree that overflow and underflow exceptions correspond to cases, when the result of an arithmetic operation surpasses and subceeds, respectively, the maximum and the minimum value for an appropriate data type returned by that arithmetic operation? | 1 |
Question | Division of two floating-point numbers; | 0 |
Question | Conversion of Fahrenheit into Celsius temperature, and vice versa; | 0 |
Question | Computation of a sphere surphase area; | 0 |
Question | Questions regarding the execution of arithmetic operations with interger and floating-point values | 0 |
Section 5
Activity Type | Content | Is Graded? |
---|---|---|
Question | Do you agree that the key motivation for the CPU pipelining is to speed-up the execution of a program by exploring multiple CPU cores? | 1 |
Question | Which CPU block(s) is/are accessed during the execution of the following instruction? lw 2) | 1 |
Question | What are 5 major stages of a pipelined instruction execution? | 1 |
Question | Do you agree that, for a processor with 5 pipelined stages, the number of concurrently executed instructions is up to 4? | 1 |
Question | There are several types of processors available, including single-cycle and multicycle.The major advantage of a single-cycle processor is the simplicity of its design. But what is its key drawback? | 1 |
Question | Design of a testbench in ModelSim for Quartus Prime programming environment; | 0 |
Question | The design of Half-Adder, Full-Adder, Ripple Carry Adder by using Verilog HDL in Quartus Prime | 0 |
Question | Testing the correctness of Verilog HDL design by using ModelSim | 0 |
Section 6
Activity Type | Content | Is Graded? |
---|---|---|
Question | Cold boot attack explores vulnerabilities in a memory dump mechanism. What is a memory dump? | 1 |
Question | Below is a list of possible vulnerability attacks. Choose the one(s) that explore(s) vulnerabilities in a speculative execution of modern processors: Meltdown, Foreshadow, Cold boot attack, Spectre, No choice is correct; | 1 |
Question | Choose the most precise definition for a side-channel attack: An attack that explores vulnerabilities in the hardware implementation of a computer system, An attack that explores vulnerabilities in the software components of a computer system; | 1 |
Question | Do you agree that Meltdown and Spectre vulnerabilities both explore race conditions in existing memory circuits? | 1 |
Question | Programming assignment to implement Multiplexor using Verilog HDL in Quartus Prime; | 0 |
Question | Performance optimization of a Verilog HDL design; | 0 |
Question | The design of a simple Arithmetic-Logic Unit (ALU); | 0 |
Question | Revision questions | 0 |
Final assessment
Section 1
- Briefly describe the principles of Von Neumann architecture. Illustrate with a diagram.
- Describe the steps that transform a program written in a high-level language such as C into a representation that is directly executed by a computer processor. Illustrate with a diagram; provide a brief description for each step.
- Consider three different processors P1, P2, and P3 executing the same instruction set. P1 has a 3 GHz clock rate and a CPI of 1.5. P2 has a 2.5 GHz clock rate and a CPI of 1.0. P3 has a 4.0 GHz clock rate and has a CPI of 2.2. Answer the following questions: a) Which processor has the highest performance expressed in instructions per second? b) If the processors each execute a program in 10 seconds, find the number of cycles and the number of instructions. c) We are trying to reduce the execution time by 30% but this leads to an increase of 20% in the CPI. What clock rate should we have to get this time reduction?
Section 2
- Prove that the AND and NOT logic gates can be implemented by using only the NOR logic gate.
- What are the S/R latch and D latch? Draw the respective logic circuits. Describe the differences between them.
- Briefly describe the key difference(s) between combinational and sequential logic circuits.
- Define what a multiplexor logic circuit is (with an arbitrary number of inputs). Provide a truth table for a 2-to-1 multiplexor. Provide a logic circuit implementing a 2-to-1 multiplexor, that uses AND, NOT, and OR logic gates. Describe a Verilog module implementing such a logic circuit of a 2-to-1 multiplexor.
Section 3
- Translate the following MIPS code to C (or pseudocode). Assume that variables f, g, h, and i are assigned to registers s1, s3, respectively. Code to translate: sub s1, t0, 3; add s3, </math>t0
- Assume that two MIPS registers, s1, contain the following binary data (for simplicity, we assume 8-bit registers, rather that 32): s1: 01010101. What is the value of register s1, $s0, 4.
- List and describe the purpose of general-purpose MIPS registers.
Section 4
- Briefly describe the overflow and underflow problems for arithmetic operations.
- Describe the difference between executing arithmetic operations with integers and floating-point values for a MIPS processor.
- What is a precision problem for a floating-point operation?
Section 5
- What is a Program Counter (PC) register of a processor?
- Describe the principle of a pipelined CPU execution. Provide a diagram illustrating the concept. Briefly describe the 5 key stages of a classical pipeline.
- What are the key differences between Control Unit (CU) and Arithmetic Logic Unit (ALU) of a processor? Which purposes do they serve?
- What is a CPU datapath?
Section 6
- What is an out-of-order execution? What hardware features of CPU implementation, in addition to an out-of-order execution, are exploited by Meltdown vulnerability? How serious is Meltdown vulnerability?
- What is an instruction-level parallelism?
- Describe the idea of a general-purpose GPU programming.
- Briefly explain the working principles of a CPU cache.
- Discuss advantages and drawbacks of a hierarchical memory model for computer systems.
The retake exam
Section 1
Section 2
Section 3
Section 4
Section 5
Section 6