Musings, Courses, & Projects by Rob Marano

ECE 251 - Computer Architecture (Spring 2024)

General Course Information

Professor: Prof. Rob Marano
Email: rob@cooper.edu
Semester: Spring 2024

Weekly course notes

Course Description

Introduction to the design of computers and computer systems. Topics include: integer and floating-point representations and operations: ALU design; von Neumann and Harvard architectures; accumulator, general purpose register and stack-based processor design; RISC and CISC architectures; addressing modes; vector operations; microprogrammed and hard-wired controllers; machine language and assembly language programming; static and dynamics memory operation, timing and interfacing; cache; virtual memory; I/O systems: bus design and data transfer, DMA; interrupts and interrupt handling, polling; disk operation and organization; pipelined processor design. The course has a substantial project component that includes assembly language programming and the design and construction of systems that contain microcontrollers, programmable logic, and a variety of I/O devices.

3 credits. 3 hours per week (45 total hours). Link to course catalog

Course Prerequisites

ECE 150 — Digital Logic Design
Most specifically combinational and sequential logic theory and implementation.

Course Structure/Method

Lectures and SW-based Labs: The class meets in person from 6:00-8:50pm on class days, for a total of 15 sessions. Office hours are held Wednesdays 5:00-6:00pm in the Engineering Adjunct’s Office on the 2nd floor of the NAB at 41 Cooper Square. Appointments held remotely will be scheduled upon request in increments of 20 minutes. Please contact me on Microsoft Teams chat via rob.marano@cooper.edu. Once scheduled, you will receive a meeting invite that you must accept to confirm the appointment. I can meet any day, including weekends, should that work for us both.

The course will use expand your knowledge of digital logic design to understand the design of computers systems down to the fundamental internals of a processor, that is, a central processing unit (CPU), and its associated memory systems. The following topic areas will be covered:

  1. Logic, Computer Abstraction, and Software Modeling Using Veril
    (aka Bits, Gates, and Clocks — The Alphabet of Computers)
  2. Instructions —The Language & Grammar of Computers
  3. Assembly Language Programming — MIPS
  4. Arithmetic for Computers — Adders on Up
  5. The Processor — Data Path and Control
  6. Memory Hierarchies

Anticipated Schedule (at class pace)

Class Topic
1 Computer Abstraction, and Software Modeling
2, 3, 4 Software Modeling Using Verilog
5, 6 Instructions —The Language & Grammar of Computers
7, 8 Intro to Assembly Language Programming — MIPS CPU
9, 10 Arithmetic for Computers — Adders, Multipliers, Dividers; Midterm Exam
11, 12 The Processor — Data Path and Control
13, 14 Memory Hierarchies
15 Final Exam; Group CPU Final Project due

Weekend lab sessions will be scheduled throughout the semester in order to work on your final project designs.

Course Learning Outcomes

Upon successful completion of this course, each student will be able to:

  1. Design basic and intermediate RISC pipelines, including the instruction set, data paths, control units and mechanisms to resolve pipeline hazards;
  2. Understand memory hierarchy design, memory access time formula, performance improvement techniques, and trade-offs;
  3. Design a functioning RISC-based, MIPS-like CPU with a capable instruction set architecture using Verilog to emulate the design using the gate and the behaviorial models;
  4. Write a simple assembler using a programming language of their choice (preferably Python for coding ease) to translate the ISA-based assembly code into machine code for the designed RISC-based processor;
  5. By understanding the key interactions and dependencies between the processor and the hierarchy of memory, one would be able to include this knowledge to designing and implementing software code that demonstrates improved performance on the platform for which it’s written.

ABET Student Outcomes:

This course supports student achievement of outcomes 1, 5, and 7:

Also, this course supports ABET’s Criteria for Accrediting Computing Programs, 2021 – 2022, specifically items 3, 4, and 5:

Communication Policy

The best way to contact me is via chat on Microsoft Teams then email. I will do my best to respond within 24 hours. Communication and participation in class is not only encouraged, but required. I seek to understand your individual understanding of the material each class. Advocate for yourself, early and often. Make time to meet with me should you need more explanation and assistance.

Course Expectations

Class Preparation

Depending upon the week’s topic, each session will consist of two components: class discussion and hands-on lab, using your computers. Come prepared with your laptop and a Linux environment. Ensure you have access to the ICE Lab computers should you need it; check with jacob.koziej@cooper.edu.

Each class discussion consists of a mix of lectures, programming/simulations, and question-driven group analysis of one or more large programming problems. Lab will consist of either group or individual work on exercises or projects. Questions arising during lab time in class may be used to prompt additional discussion as time permits.

Attendance

Success as a student begins with attendance. Class time serves not only for learning new concepts and skills but also for practicing what you have learned with active feedback. Some assignments and demos may be completed in class, but practice and study are required outside of class. Students are expected to attend classes regularly, arrive on time, and participate. I take attendance during every session, and it forms part of your grade. Students are encouraged to e-mail me when they are absent. Students are responsible for all academic work missed as a result of absences. It is at my discretion to work with students outside of class time in order to make-up any missed work.

Materials

Required Textbooks

Optional but helpful Textbook

Required Software

We will be using various tools during our class, including but not limited to:

We will detail access and usage in class during the semester.

Assessment Strategy and Grading Policy

All assignments must be completed by the end of this course in order to receive at least a passing grade. Individual homework ssignments, referred to as “HW{1..14}”, will be handed-in electronically (scanned) via Microsoft Teams Assignments for this course. Quizzes will be held at the end of class as scheduled. On those days, offices hours will be canceled unless otherwise noted. Final group-based projects will be handed-in via your team’s GitHub respository per project. We will discuss in class how to create each repository.

Assessment Title Points Given On Due Date
1 HW 1 10 1/24 1/31 @ 11:59:59pm ET
2 HW 2 10 2/7 3/3 @ 11:59:59pm ET
3 HW 3 40 3/9 3/25 @ 11:59:59pm ET
4 HW 4 10 3/6 3/27 @ 11:59:59pm ET
5 Midterm Exam 50 4/3 Study Guide
6 HW 5 10 4/10 4/24 @ 11:59:59pm ET
7 Final Exam 50 5/8 -
8 Final Group Project 100 2/14 5/10 (last day of semester) @ 11:59:59pm ET.
Note, if you hand it in before the end of the day of the last class, you will get 10 points added to your final group project.

Grading Distribution

Assessment Type Total Points % of Final Grade
Homeworks 50 25%
Exams (2) 100 35%
Final Project 100 35%
Demonstrated Active Participation 30 5%

Final Projects as Minimal Viable Product (MVP)

(aka Minimum Lovable Product (MLP))

You will choose a partner with whom to you will jointly design and implement, using SystemVerilog, a central processing unit (CPU) and simple memory system that work together to execute programs. These programs will be written in assembly language using your newly designed instruction set architecture (ISA) for your project’s CPU. You will also write a simple assembler that will convert the assembly code to your CPU’s machine code. Your computer (CPU plus memory) will only run one program at a time. Hence, since you do not have an operating system, you will not need to link your code.

Attending Class

Occassionally, class may be held virtualy for a variety of unforeseen reaons, including, if required by the School or to deliver course material by a more effective delivery method, for example certain video presentations or certain online interaction. If announced in advance, class will meet virtually at the assigned times via the class MS Teams portal or via a Zoom meeting. If a class meeting is to be held via Microsoft Teams, a calendar invitation from Microsoft Teams will be sent to students via email in advance of the class. Students are expected to maintain appropriate technology (microphone, camera, speakers) to support online class delivery, should it be announced.

It is understood that having a class meeting entirely via a virtual environment may be challenging, especially to those not accustomed to virtual collaboration and learning. Reasonable efforts may be made to adjust to these circumstances. Students are to log on using identifiable names. It is the student’s responsibility to log on and remain online, engaged, and actively participating for the duration of the class. Come on camera.

Class Policies

  1. Course policies are developed to support fair and equitable treatment in the classroom and to set high performance standards. If you are having any issues related to me, the course, or your fellow students, please make an appointment to speak with me for discussion toward resolution. The ealier any issue or concern is brought to my attention, the better the opportunity for successful resolution.
  2. Students are expected to be present in class for the entire scheduled meeting time. Attendance in class is important for student success and for the classroom environment.
  3. For any virtual class meeting, students are expected to sign on and remain online and engaged with the class for the entire scheduled meeting time. Students are requested to keep their video on during class times, and their audio muted unless participating in class discussion.
  4. Class lectures may not not always be recorded, and lecture aides, slides and/or materials supplementary to the textbook may not always be be available following the conclusion of each class session. Students are expected to take appropriate notes and pose relevant questions during class sessions. Lecture material can be discussed during an office consultation.
  5. All Health protocols of The Cooper Union shall be followed at all times.
  6. All School policies shall be followed at all times.
  7. Students are expected to be prepared for each class prior to beginning the class session. Preparation should include prior review of the text sections planned for discussion. All asignments must be completed on time to maintain preparation for subsequent discussions.
  8. Students are expected to check their Cooper Union email and their Microsoft Teams Chat daily for any announcements or other relevant course communications. Any changes to the planned course outline, course schedule, or other course components will be announced via the School email. Updates may subsequently be posted to Microsoft Teams, depending on the magnitude of the change.
  9. Microsoft Teams will be used for course communications and assignments. Documents relevant to the course will be posted to Microsoft Teams and/or to the course syllabus online here.
  10. Assignments are due according to the dates in the Course Outline, and at the time of the scheduled beginning of the class session. Once class starts, any assignments due that day will be considered late. Late assignments are not guaranteed to be accepted and may be automatically assigned a zero grade. Any accepted late assignment will be subject to a reduction in grade for lateness. Any assignment not received prior to beginning the associated exam review according to the Course Outline will be recorded as zero credit. There will be no make-up or extra credit work associated with this class.
  11. Any issue concerning a deadline is to be brought to the attention of the Professor at least 48 hours prior to the due date and time, for potential discussion or review. However, as the course progression is already determined, there may not be any opportunity for flexibility. Students are encouraged to plan accordingly.
  12. Homework, assignments, and any Project material for submission must be turned in individually via the class Microsoft Teams Assignments portal for this course and must be complete and fully legible to receive credit. Paper or hard-copy submissions will not be accepted.
  13. It is recommended to include the student’s name and the assignment number within the filename of the assignment being turned in for proper credit allocation. Students are encouraged to review their uploaded files for legibility. Accepted formats of electronic files submissions are Microsoft Word (preferred) or PDF, only. Other file formats will not be accepted.
  14. Make-up Exams are not planned or given. In the event of extreme extenuating circumstances, and only with prior notification and agreement, an alternate plan may be discussed; however, there may not be an opportunity to obtain full credit. Once an Exam is given, unless the student is present to take the Exam, any opportunity to obtain credit for that Exam shall expire. Please plan accordingly.
  15. Exams are taken individually and graded out of 20 points, each, and the raw point score earned will count toward the final class grade according to the distribution, above. The raw point score total for the class will be used for assignment of the final class letter grade. Typically, a minimum class score of 90 is necessary for an A, a minimum class score of an 80 is necessary for a B, a minimum class score of a 70 is necessary for a C, and a minimum class score of a 60 is necessary for a D, with any lower score assigned an F. Borderline grades may be rounded up, for example when a student has demonstrated substantial effort by completing fully all assignments and submitting all of them on time.
  16. There is no extra-credit work associated with this class.
  17. During class sessions background noise should be eliminated to avoid disrupting the class.
  18. Electronic devices for note taking are permitted during class. Photographic or video recording of lectures in whole or in part is prohibited. Use of headphones, mobile phones, tablets, laptop computers or any other devices posessing communication capability are prohibited during exams, and any such use will result in a zero grade being assigned for that exam. Electronic calculators or calculation devices are permitted during exams, provided the device doeas not posess any communication capability. Students are expected to come to class and to exams fully prepared and with all materials for that class or exam.
  19. Any special needs or special accomodations requirements are to be reported to the School according to School policy, and students with disabilities or who need special accommodations for this class are required to notify the Dean of Students and meet with the Professor, in person or virtually, so that arrangements can be made. The Cooper Union has limited resources and extra lead time is required for such arrangements to be feasible. In order to receive accommodations for an exam, you must notify the Professor yourself in writing at least two weeks before the accommodations are needed for each event and you must also be registered with the Dean of Students. Students will not be afforded any special accommodations retroactively, e.g., for academic work completed prior to disclosure to the Professor.
  20. The Cooper Union School of Engineering Policy on Academic Integrity will always be followed. Be yourself and show what you can do. This is about learning, and advancing your knowledge (and interest).

Special Notes

It is a goal of Cooper Union that learning experiences be as accessible as possible. If you anticipate or experience physical or academic barriers based on disability, please let me know immediately so that we can discuss options. Students with disabilities are to contact the Director of Student Care and Support to formally establish accommodations. Students with accommodation letters must provide me with a copy of your letter and make an appointment to meet with me as soon as possible to discuss your needs.

While I want you to feel comfortable coming to me with issues you may be struggling with or concerns you have, please be aware that I have reporting requirements that are part of my responsibilities as a member of the faculty. If you inform me of an issue of sexual harassment, sexual assault, or discrimination, I will keep the information as private as I can, but I am required to report the basic facts of the incident to Cooper’s Title IX Coordinator. Counseling Services at The Cooper Union are coordinated through the Office of Student Affairs.

Your Comp Arch Portfolio

Before you leave for break, ensure that you clean up your personal GitHub respository so that you can showcase the work you have developed. Like an artist, you know have a portfolio of software you have designed and implemented. No matter what you decide in your career, work and life is better through coding!

Research, tinker, automate so you have more time for the fun stuff in life!

Enjoy the course.
/prof.marano