CSCI 2121: Computer Organization Assembly Language

CSCI 2121: Computer Organization and
Assembly Language
Lab 5
Design Sequential Circuits in Verilog III
February 27, 2019
1 Learning Objectives
In this lab, you will use what we have learned about sequential circuits to implement different
types of shift registers, a sequence detector, and rising edge detectors.
2 Submission Instruction
Save code for each task as .sv file, with the name specified at the end of each lab task.
Put all lab files into one folder, and compress the folder to a .zip file.
Submit it on Brightspace.
Deadline for submission: Sunday 2nd March, 2019, 11:55 pm.
As the marking will be done automatically by a script, it is important that you follow these
instructions and save your files with correct names and .sv extension.
1
3 Lab Assignment
3.1 Lab Task 1
Design a 4-bit shift-left register
Implement a 4-bit shift-left register. The skeleton code is available at
https://www.edaplayground.com/x/34QM. Name your file as task1.sv
Figure 1: 4-bit shift-left register
3.2 Lab Task 2
Design a 4-bit shift-left-or-right register
Implement a 4-bit shift-left-or-right register. It performs the work of the shift right register if
the direction is 0, or the shift left register if the direction is 1. The skeleton code is available here
at https://www.edaplayground.com/x/4C3Z. Name your file as task2.sv
Figure 2: 4-bit shift-left-or-right register
2
3.3 Lab Task 3

CSCI 2121作业代写
Design a 16-bit shift register
Implement a 16-bit shift register using only 4-bit shift-right registers.Complete the circuit and
make sure it passes all tests. The skeleton code is available at https://www.edaplayground.com/x/35JE.
Name your file as task3.sv
3.4 Lab Task 4
Design a sequence detector
Design a finite state machine that has one input line x and one output line z. The input line
receives a stream of bits. The machine outputs a 1 when exactly two of the last three inputs are
1; otherwise, it outputs a zero. An example is shown by Figure 3. The skeleton code is available
at https://www.edaplayground.com/x/3b8Q. Save this file as task4.sv
Figure 3: Sequence detector
3.5 Lab Task 5
Design a rising edge detector (Moore machine)
Figure 4: Rising edge detector (Moore machine)

因为专业,所以值得信赖。如有需要,请加QQ:99515681 或邮箱:99515681@qq.com

微信:codinghelp

原文地址:https://www.cnblogs.com/welhoa/p/10462616.html

时间: 2024-08-29 23:29:52

CSCI 2121: Computer Organization Assembly Language的相关文章

An Assembly Language

BUFFER OVERFLOW 3 An Assembly Language Introduction Basic of x86 Architecture Assembly Language Compiler, Assembler & Linker Function Operation Stack Stack Operation Stack based Buffer Overflow Shellcode: The Payload Vulnerability & Exploit Exampl

Assembly Language

Programming in machine language can be very tedious and error prone. Instead of using ones and zeros, an assembly language has an advantage, because it uses mnemonics (abbreviations) for the instructions and variable names for memory locations, inste

Assembly language:1-1 Machine Language

Refer&Links https://www.computerhope.com/jargon/m/machlang.htm <Assembly language>-Wang shuang Terms Term: Machine language Intro: Sometimes referred to as?machine code?or?object code,?machine language?is a collection of?binary?digits or bits th

1.2 ASSEMBLY LANGUAGE

People are much happier moving up the ladder,socially or even technically.So our profession has moved from machine code to C/Win32 API,to C++/MFC,to java/AWT(Abstract Window Toolkit,classes for building graphics user interface in Java)/JFC(Java Found

Computer architecture Computer organization

COMPUTER ORGANIZATION AND ARCHITECTURE DESIGNING FOR PERFORMANCEComputer architectureNINTH EDITION Computer architecture refers to those attributes of a system visible to aprogrammer or, put another way, those attributes that have a direct impact ont

CCPS310 – COMPUTER ORGANIZATION II

CCPS310 – COMPUTER ORGANIZATION IILAB 2 (7%)ARC MEMORY MAPPED I/OSubmission instruction:Students work in groups of 2, and are expected to do the lab together. If youare doing in group of 2- only have one member submit the labDue: March 23 @23:00Doing

CSCI 1100 Computer Science

CSCI 1100 — Computer Science 1 Homework 8Bears, Berries and Tourists Redux: ClassesOverviewThis homework is worth 100 points toward your overall homework grade, and is due Wednesday,December 11, 2019 at 11:59:59 pm. It has three parts. The first two

【csapp读书笔记3】x86 Assembly Language

这部分其实没什么好笔记的...毕竟和课本上的x86汇编是一样的 不过有需要pay attention的地方就是x86汇编有两种书写形式:Intel format和AT&T format (csapp  Page200) Intel format:就是常见于Microsoft和Intel的文档中.另外中国的教材也用这种format AT&T format:csapp就用的这种.另外gcc.objdump等工具反编译的代码默认也是这种格式 主要区别就是操作数中source和destinatio

汇编语言教材assembly language

https://en.wikipedia.org/wiki/Assembly_language https://baike.baidu.com/item/%E6%B1%87%E7%BC%96%E8%AF%AD%E8%A8%80/61826 https://baijiahao.baidu.com/s?id=1590302037132894549&wfr=spider&for=pc 经典教材 汇编语言教材很多,各种处理器都有涉及,粗略统计不下百种.在这么多的教材里,用得较多的可以分类列举如下: