课程内容笔记,自用,不涉及任何 assignment,exam 答案

Notes for self-use, do not include any assignments or exams

H/W & S/W

H/W : 即 Hardware (硬件),指计算机的有形部件

S/W : 即 Software (软件),指计算机程序

Abstraction

  • 抽象 (Abstraction) 是指通过 接口 (Well-defined interface) 将实现细节 (low-level details) 进行 封装 (encapsulated)
  • 只需通过接口就能使用模块,无需了解实现细节

Decomposition of Computer System

  • 自顶向下 (top-down approach):将系统 Decompose 成若干个子系统 (sub-system)
  • 自底向上 (bottom-up approach): 用若干个子系统 Compose 复杂系统
  • 子系统组织成一个 hierarchy

Abstraction of Computer System

  • 每个子系统可被一个 block 表示:因此系统之间的关系形成了一个 block diagram
  • 子系统之间的边界较模糊 (arbitrary)
  • 子系统与外界交互有一个清晰并且 well-defined 的接口 (interface)

Computer/Electronic System

  • 所有的电脑系统最终都会与外界互动 (interacting with the physical worlds)
  • System Component —— 输入 input:外界的物理性质 (physical quantities)转化为易于处理的电信号 (electrical signals),例如电压,电流...
  • System Component —— 输出 output:将电信号或内部性质 (internal quantity) 转化为物理性质
  • System Component —— 处理 process:执行特定的功能

Computer organization 计算机组成

  • Input devices

    从外界获取数据/信息并传入计算机进行处理

    Interact with human:键鼠,触摸屏...

    Interact with other computers:硬盘 (hard disk),无线路由器 (wireless network router)...

  • Output devices

    将信息传向 (proceed)外界

    Interact with human:屏幕 (monitor),打印机,扬声器...

    Interact with other computer:硬盘,无线路由器...

  • Central Processing Unit (CPU) 中央处理器

    Control the operations of all parts of the computer system

    包括 arithmetic operations, decision making

    实体 CPU 包含一部分 memory system 与 I/O

  • CPU - Arithmetic and Logic Unit (ALU) 算术逻辑单元

    CPU 中的 ALU 负责执行实际的算术运算

    例如:四则运算 (\(+,-,\times, \div\)),位运算 (\(\&, \|, <<, >>\)),比较运算 (\(<, >, \neq, \leq, \geq\))

  • Memory

    储存 指令 (instruction)数据 (data) (注意,在同一 memory storage 同时储存指令与数据是 Von Neumann Architecture 的特性!)

    指令 (instruction):

    • 指导 CPU 的工作
    • 指令由用户的软件程序经过 编译 (compilation) 后产生

    数据 (data)

    • User input
    • Temporary Data
    • Computed output

    Memory Storage Capability:

    任何 Memory Device 都有对应的 Memory Storage Capability,表示其能存储的字节数 (Bytes, \(1\ Byte=8 \ bits\))

  • Memory —— Main Memory 主存

    主存包括 RAM (Random Access Memory)ROM (Read-Only Memory),其中的数据一般可直接访问

    其中,RAM 存储 user programs,其可与 CPU 直接交换数据,且是 volatile 的 (断电后存储的信息消失)

    ROM 存储几乎不会更改的数据:例如操作系统 (operating systems)

  • Memory —— Cache Memory 缓存

    现代处理系统常拥有多级缓存 (layers of Cache memory): Level 1(L1), Level 2(L2), Level(L3);多级缓存形成了 memory hierarchy

    缓存拥有较高的性能:



    缓存的作用:临时储存重复使用的数据,从而提高 fast access

    当CPU处理数据时,它会先到Cache中去寻找,如果数据因之前的操作已经读取而被暂存其中,就不需要再从 RAM(Main memory)中读取数据

Stored-Program Computers

冯诺依曼 (Von Neumann) 提出 存储程序 (store programe) 设想

不同于传统的数据与程序分离,存储程序计算机将数据与程序一起进行存储;在执行计算时,遵循 memory 中存储的指令

  • Pros of Von Neumanns architecture

    控制单元 (Control Unit,例如 CPU) 能以同样的方式由主存中获取数据和指令

    类似的,由 memory 或 外部装置中获取的数据可以同样的方式进行处理

  • Cons of Von Neumann

    The memory unit is the performance bottleneck of the stored-program architecture since both data and instruction are stored

    in the same place

    CPU 与存储器之间的流量与存储器的容量相比起来相当小,这是限制冯诺伊曼结构效率的重要瓶颈 (performance bottleneck)

    The CPU is idle for a certain amount of time while memory is being accessed

    同样,CPU 与存储器之间的流量 (或 CPU 的读写效率) 与 CPU 的数据处理性能相比起来相当小,因此 CPU 将会在资料输入或输出存储器时闲置 (idle)

3 Classes of Computers

三种电脑类型:

Desktop Computer (桌上电脑)Server(服务器)Embedded System(嵌入式系统)

  • Desktop Computer

    我们最常见的电脑类型

    PC,笔记本电脑,智能手机均属该类型

  • Embedded System

    嵌入式系统指:某个 Computer system 是组成更大系统的一小部分,那么这个 Computer system 被称为嵌入式系统

    一般来说,其为整个系统执行简单或专门 (simple or dedicated)的功能;所以,其处理能力,存储能力均受限

    例:汽车上的测速系统 (测速系统为嵌入到整个汽车系统中的一个电脑系统)

    现代嵌入式系统的功能更加多样,且拥有更多的资源

ENGG1310 P2.1 Intro to CE Computer Systems, Programming & Networking的更多相关文章

  1. Uniform synchronization between multiple kernels running on single computer systems

    The present invention allocates resources in a multi-operating system computing system, thereby avoi ...

  2. Types of Computer Systems

    Types of Computer Systems Para 1 You should be familiar with the differences among computer systems ...

  3. Computer Go Programming 学习

    https://senseis.xmp.net/?ComputerGoProgramming https://www.worldscientific.com/doi/pdf/10.1142/S0218 ...

  4. General protection fault Exceptions in Linux/IA32 Systems

    Computer Systems A Programmer's Perspective Second Edition Exception number Description Exception cl ...

  5. 【FSFA 读书笔记】Ch 2 Computer Foundatinons(2)

    Hard Disk Technology 1. 机械硬盘内部构造 几个重要概念:Sector(扇区),Head(读写头),Track(磁道),Cylinder(柱面). 如果一个文件比较大,磁盘的写入 ...

  6. The Master of Science degree in Computer Scienc

    Computer Science MS Degree MS Degree or Depth       45.00 Hours Required   http://scpd.stanford.edu/ ...

  7. System and method to prioritize large memory page allocation in virtualized systems

    The prioritization of large memory page mapping is a function of the access bits in the L1 page tabl ...

  8. 2012年Elsevier旗下Computer Science期刊最新SCI影响因子排名

    Latest Impact Factor figures from Elsevier's Computer Science Journals Medical Image Analysis Impact ...

  9. Computer Science: the Big Picture

    1.课程PPTMIT OpenCourseWarehttp://ocw.mit.edu/courses/; Courses  Stanfordhttp://cs.stanford.edu/course ...

  10. Computer form factor

    http://en.wikipedia.org/wiki/Motherboard_form_factor Computer form factor From Wikipedia, the free e ...

随机推荐

  1. 腾讯出品小程序自动化测试框架【Minium】系列(六)常见组件的处理

    写在前面 我发现一件神奇的事,当你学一门新技术或者新的知识点遇到不会的时候,真的可以先放一放,第二天再去学习,也许说不定也就会了. 为什么这么说? 昨天文章断断续续的写了近一天,有一个组件不认识,自然 ...

  2. vue学习笔记(一)---- vue指令(在vue中使用样式的方式)

    认真学习,认真记录,每天都要有进步呀!!! 加油叭!!! 一.在vue中使用样式的方式: 1. 直接传递一个数组,注意: 这里的 class 需要使用 v-bind 做数据绑定 <style&g ...

  3. 编译OpenCV以及openc_contrib提示缺少boostdesc_bgm.i文件出错的解决

    ~/opencv_contrib/modules/xfeatures2d/src/boostdesc.cpp:673:20: fatal error: boostdesc_bgm.i: No such ...

  4. Zstack私有云平台运行实践

    很高兴昨天加了大名鼎鼎的杰杰站长的微信,系统运行的怎么样,一定不能只是给力两个字完事,下面就上具体的: 经过这几年的运行费和预研经费的支持,组里除了在线的几台服务器外,慢慢离线也积攒了几台用作调试和做 ...

  5. 【KAWAKO】DTLN-1Dconv的原理

    目录 前言 怎么理解DTLN的第二部分呢 对1D卷积的具体理解 1D卷积相较于STFT的优缺点 优点 缺点(不太确定) 参考文献 前言 DTLN是一种能够实时处理的语音降噪算法,其开源代码在这里,论文 ...

  6. Trie 的一类应用

    \(\text{Trie}\) 先从 [十二省联考 \(2019\)] 异或粽子 谈起 不难想到堆加可持久化 \(Trie\) 的做法 这就和 \(\text{[NOI2010]}\) 超级钢琴 类似 ...

  7. JZOJ 5352. 【NOIP2017提高A组模拟9.7】计数题

    题目 分析 考虑 \(kruskal\) 的过程 我们选边从高位开始 当前位为 \(0\) 的放一边,为 \(1\) 的放另一边 将 \(0\) 的建一棵字典树, \(1\) 的匹配 因为是异或,那就 ...

  8. Where do I Turn?(叉积)

    题目: Trouble came from the overseas lands: a three-headed dragon Gorynych arrived. The dragon settled ...

  9. 轻量级CI/CD发布部署环境搭建及使用_01_基本介绍

    轻量级CI/CD发布部署环境搭建及使用_01_基本介绍 授人以鱼不如授人以渔,如果说的别人都没明白,说明自己实际也不是太明白 最终实现效果如图 1,选择相应环境下的项目,执行构建 注: web:vue ...

  10. MapboxGL基础

    1. 概述 Mapbox GL 是一套开源库,用于在 Web.移动和桌面应用程序中嵌入可自定义且响应迅速的客户端地图.Mapbox GL 贴图以高帧速率呈现.缩写"GL"来自行业标 ...