首页 星云 工具 资源 星选 资讯 热门工具
:

PDF转图片 完全免费 小红书视频下载 无水印 抖音视频下载 无水印 数字星空

计算机网络试题,高校精选

网络技术 97.63KB 34 需要积分: 1
立即下载

资源介绍:

计算机网络试题 【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。 【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
Computer Architecture 2022-23
Assessed Exercise 1
State Machine Circuit
Introduction
The purposes of this exercise are to learn how to design a simple synchronous
digital circuit that implements a state machine, how to specify it in a hardware
description language, and how to test it via simulation. The specification and
simulation will use Hydra, a functional computer hardware description language.
The exercise
Design and implement
Two circuits, as described below, which should all be in a file Traffi-
cLight.hs.
A simulation driver for each circuit; both of these should be in a file named
TrafficLightRun.hs
Suitable test data that demonstrates the correct functioning of each cir-
cuit, which should be included in TrafficLightRun.hs.
There should be a main function in TrafficLightRun.hs that runs all of
your test cases.
Informal specification of the circuit
The circuits are traffic light controllers. There are two versions.
Version 1
The circuit controller1 has one input, a bit called reset. This would be connected
to a pushbutton. The reset button should be pushed once to start the circuit,
and then in normal use it would never be pressed again. We model this by
defining the value of the reset input bit to be 1 during the first clock cycle, and
0 thereafter.
There are three outputs, each of which is a bit. The outputs correspond to
green, amber, and red, and they determine whether the corresponding traffic
light is on. At all times (after reset has been pressed and the circuit is running)
one of the three output bits should be 1, indicating that the corresponding traffic
light should be on, and the other two bits should be 0. The outputs should run
through a fixed sequence: green, green, green, amber, red, red, red, red, amber,
and then it repeats.
1
Version 2
The second version, controller2, is intended for a pedestrian crossing. There
are three lights for traffic (green, amber, and red) and also two lights for the
pedestrian (wait and walk). There are two input bits: a reset pushbutton, and
a walkRequest which is 1 when a pedestrian presses the Walk pushbutton.
Normally the outputs indicate green/wait. However, when the walkRequest
button is pressed, the traffic light changes to amber, and then the traffic light
changes to red and the pedestrian light turns to walk for three clock cycles. Then
the system displays amber/wait and then returns to its normal state green/wait.
Furthermore, the traffic engineers want to know how often the walkRequest
button is pressed. To measure this, there is a 16-bit counter walkCount. When
the Reset button is pressed, the value of WalkCount is set to 0 at the next
clock tick. When the walkRequest button is pressed, walkCount should be
incremented at the next clock tick.
To summarise, the inputs are: reset (a pushbutton) and walkRequest (a
pushbutton). The outputs are: green, amber, red, wait, walk (each is 1 bit),
and walkCount (a 16-bit binary integer).
You may notice that the specification of the problem doesn’t say what to do
in a few subtle situations. For example, what should happen if the walkRequest
button is pressed when the system is in the red/walk state? You may adopt
any reasonable policy you like for these situations. In the real world, you (the
engineer) might go back to the customer to discuss what to do. It is common
for the requirements of a project to evolve during the implementation. Actually,
that’s one of the reasons that good engineering includes making your solution
maintainable as well as correct.
The point of this exercise is to gain some experience with a simple control
circuit, and to use some of the building block circuits. The exercise as described
doesn’t account for some real world issues, which you can ignore:
In the real world, the reset button and the walkCount display would be
hidden inside the box containing the electronics, while the walkRequest
button would be out where a pedestrian could see and press it, and the
various light outputs would control the actual light bulbs.
In the real world the clock cycles would be too short, so each light would
be held for a larger number of clock cycles. For example, the amber phase
might last for a million cycles and green/red would be correspondingly
longer.
Work in small groups
This assessed exercise should be carried out in a small group consisting of two
to three students. Any amount of discussion and shared work within the group
is fine, and the product you hand in counts fully for each member of the group.
One member of the group should submit the exercise on Moodle. As stated
below, the submission must identify all the members of the group, not just the
one who submitted it.
To get started, talk to fellow members of the course, and organise your group.
Please email the lecturer with the names and matriculation numbers of everyone
2

资源文件列表:

CA_22-23_exercise1.zip 大约有1个文件
  1. CA_22-23_exercise1.pdf 98.85KB
0评论
提交 加载更多评论
其他资源 流感检测源码,深度学习项目
流感检测源码,深度学习项目 【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。 【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
jscardealer-insurance-dealer-web
jscardealer-insurance-dealer-web
C#学习笔记12:SYN6288语音模块-Winform上位机控制软件
C#学习笔记12:SYN6288语音模块_Winform上位机控制软件 今日尝试使用C# Winform写一个上位机软件控制 SYN6288语音模块 这里不讲什么基本原理(或者讲的比较略简),直接讲实现了就...... 文章提供测试代码讲解、测试效果图、整体测试工程下载
2024年亚太杯的数模题目
就是一个题目,找不到题目的可以来使用,后面的话完全就是在说胡话,反正就是一直凑字数,额 额11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
yolo人脸识别,树莓派
yolo人脸识别,有疑问的朋友可以私信我
微信小程序-商城系统带后台管理
适合大三大四学生用于关于微信小程序毕设的学习,或者初学小程序者用于微信小程序的学习、参考等。本微信小程序是一个带后台管理的商城系统。
使用python绘制爱心图案表白
使用python绘制爱心图案表白
linux minishell小项目练习
利用Linux中IO接口实现MiniShell 项目要求: 1.进入软件后显示字符终端界面,界面中包含用户名(可以写死为linux)、操作系统名(可以写死为ubuntu)、当前所在的文件名 [linux@ubuntu:Desktop] 2.软件中支持用户输入如下命令: 1.ls ls -a ls -l ls filename ls -l filename 2.touch touch filename 3.rm rm filename 4.mkdir mkdir dirname 5.rmdir rmdir dirname 6.cd cd .. 7.cp cp src.txt dstdir 8.mv mv oldpath newpath 9.cat cat filename.txt 10.chmod chmod 0777 filename 11.ln
linux minishell小项目练习