课程设文档,C,C++,java
资源文件列表:

CA_22-23_lec11.docx 104.25KB
资源介绍:
课程设文档,C,C++,java 【项目资源】:包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程资源、音视频、网站开发等各种技术项目的源码。包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。 【适用人群】:适用于希望学习不同技术领域的小白或进阶学习者。可作为毕设项目、课程设计、大作业、工程实训或初期项目立项。 【附加价值】:项目具有较高的学习借鉴价值,也可直接拿来修改复刻。对于有一定基础或热衷于研究的人来说,可以在这些基础代码上进行修改和扩展,实现其他功能。 【沟通交流】:有任何使用上的问题,欢迎随时与博主沟通,博主会及时解答。鼓励下载和使用,并欢迎大家互相学习,共同进步。
Computer Architecture
Lecture 11
Processor Control
Dr José Cano Reyes
School of Computing Science
University of Glasgow
Autumn 2022
Copyright ©2022 John T. O'Donnell

2
Outline
• Levels of abstraction for processor control
– High level: control algorithm
– Middle level: control signal settings
– Low level: control circuit
• Control for Sigma16/M1
– High level: M1 control algorithm
– Middle level: M1 control signal settings
– Low level: M1 control circuit
• Hydra notation for processor control

3
Designing the processor control
• We don't want to design the control circuit directly as logic!
– Control needs to be changed frequently during a system design (and this is more like developing,
testing, and debugging software)
• We use a systematic approach
– Design a control algorithm
– From the algorithm, synthesise a control circuit
• The control circuit goes through a sequence of states, so the control algorithm is a higher-level notation
for describing that sequence of states
– What can we do in a state?
• Just assert a set of control signals!

4
Levels of abstraction for processor control
• High level: describe the control algorithm as a sequence of operations
– Give the effect of the action(s) that should happen in each state
– Example: pc := pc + 1
• Middle level: work out the control signals needed for each operation
– Add the Assert statement with the control signals that need to be set to 1 in order to make the
desired effect happen
– Example: Assert […]
• Low level: derive the control circuit with the delay element method
– Flip flops to represent the states
– Logic gates to generate the control signals and to enter the next state

5
High level: control algorithm
• We can describe the control algorithm using programming notation
– Restricted just to the constructs in the control algorithm language
• The control algorithm language
– only one computational statement (Assert)
– straight line code
– blocks
– case statement (if-then-else is a special case of case)
– while loop
– repeat forever
• We use a restricted language because we need to implement it in hardware