2012年3月27日 星期二

第四週 Chp:4 系統單元的組成元件

Flash memory
Flash memory is a non-volatile computer storage chip that can be electrically erased and reprogrammed. It was developed from EEPROM (electrically erasable programmable read-only memory) and must be erased in fairly large blocks before these can be rewritten with new data. The high density NAND type must also be programmed and read in (smaller) blocks, or pages, while the NOR type allows a single machine word (byte) to be written or read independently.
The NAND type is primarily used in memory cards, USB flash drives, solid-state drives, and similar products, for general storage and transfer of data. The NOR type, which allows true random access and therefore direct code execution, is used as a replacement for the older EPROM and as an alternative to certain kinds of ROM applications. However, NOR flash memory may emulate ROM primarily at the machine code level; many digital designs need ROM (or PLA) structures for other uses, often at significantly higher speeds than (economical) flash memory may achieve. NAND or NOR flash memory is also often used to store configuration data in numerous digital products, a task previously made possible by EEPROMs or battery-powered static RAM.

閃存一種非易失性計算機存儲芯片,可電擦除和重新編程從EEPROM電可擦除可編程只讀存儲器它被開發之前,這些都可以用新的數據重寫必須相當大的​​擦除還必須進行編程高密度NAND型和閱讀(小)塊,或網頁NOR型允許一台機器(字節)書面或獨立閱讀
NAND型記憶卡USB閃存驅動器固態驅動器與同類產品一般存儲和數據傳輸主要用於 NOR型,從而使真正隨機存取因此直接執行代碼用於更換的EPROMROM的應用程序某些種類替代然而,NOR快閃記憶體可能效仿主要在機器代碼級ROM;許多數字設計需要作其他用途ROM(或解放軍)的結構,往往(經濟型)快閃記憶體可達到更高的速度 NAND或NOR快閃記憶體也常常被用來配置數據存儲眾多數碼產品以前的任務可能由EEPROM或電池供電的靜態RAM

第四週 Chp:4 系統單元的組成元件

Adapter card
 The adapter card (also expansion board, expansion card or accessory card) in computing is a printed circuit board that can be inserted into an expansion slot of a computer motherboard or backplane to add functionality to a computer system via the expansion bus.
One edge of the expansion card holds the contacts (the edge connector) that fit exactly into the slot. They establish the electrical contact between the electronics (mostly integrated circuits) on the card and on the motherboard.
A card in a computer on which additional chips can be mounted to expand the computer's capabilities.
計算適配卡擴展板擴展卡或附屬一個印刷電路板可以插入電腦主板或背板添加功能,通過擴展總線計算機系統擴充槽
一個擴充卡邊緣擁有適合完全進入插槽接觸邊緣連接器他們建立主板上的電子產品主要是集成電路之間電氣接觸
計算機額外芯片可以安裝擴展計算機的功能


Expansion slot
 An opening in a computer where a circuit board can be inserted to add new capabilities to the computer. Nearly all personal computers except portables contain expansion slots for adding more memory, graphics capabilities, and support for special devices. The boards inserted into the expansion slots are called expansion boards, expansion cards, cards, add-ins, and add-ons.
A connection in a computer, esp. a microcomputer, to which a new board can be added to expand the computer's capabilities.
 
電腦的電路可以插入到計算機上添加新功能開放幾乎所有的除外便攜式個人電腦添加更多的內存,圖形處理能力,並支持特殊設備擴展插槽。插入擴充槽被稱為擴展板擴展卡卡,加載項和加載項
一個一台電腦連接ESP微機一個新的董事會可以添加到擴展計算機的功能

第四週 Chp:4 系統單元的組成元件

Clock Speed
Clock frequency (also translated: clock speed, English: clock rate) is the fundamental frequency of the clock refers to the synchronization circuit to measure a number of cycles per second, unit of measurement to SI unit hertz (Hz)
For example, from the crystal base frequency is usually equal to a fixed sinusoidal waveform, the clock frequency is the base frequency, electronic circuits converted digital electronic devices into the corresponding square wave pulse. Need to add a little "speed" as a vector should not be scalar "frequency" confused, so use the "clock speed" to describe this concept is a misnomer.
In a single clock cycle (the time of modern embedded microprocessors are generally shorter than a nanosecond) the logic zero state and the logic state to switch back and forth. Due to the limitations of heat and power specifications, the cycle duration of the logic zero state has always been longer than the logic state.
時鐘頻率(又譯:時鐘速度,英語:時鐘速率)是基本時鐘頻率是指同步電路來衡量一個每秒的週期數,單位的測量SI單位赫茲(赫茲)
例如,從晶體基頻通常是等於一個固定的正弦波,時鐘頻率是基頻,電子電路轉換成相應的方波脈衝的數字電子設備。需要添加一點點的“速度作為載體,不應該標“頻率”混淆所以使用時鐘速度來形容這個概念是一種誤導。
在一個時鐘週期(現代嵌入式微處理器的時間一般較短的不足一納秒)零的邏輯狀態和邏輯狀態來回切換。由於熱量功率規格的限制,一直邏輯零狀態的週期時間長於邏輯狀態

第四週 Chp:4 系統單元的組成元件

power supply
A power supply is a device that supplies electrical energy to one or more electric loads. The term is most commonly applied to devices that convert one form of electrical energy to another, though it may also refer to devices that convert another form of energy (e.g., mechanical, chemical, solar) to electrical energy. A regulated power supply is one that controls the output voltage or current to a specific value; the controlled value is held nearly constant despite variations in either load current or the voltage supplied by the power supply's energy source. 
一個電源一個或多個電力負荷的設備提供電能這個詞是最常見的應用轉換成電能一種形式到另一個設備它也可能是指設備轉換成電能一種形式的能量(如機械,化工,太陽能)穩壓電源控制輸出電壓或電流一個特定的值;舉行,儘管在任何負載電流電源能量來源提供的電壓變化控制值幾乎不變

BUS  
 
In computer architecture, a bus is a subsystem that transfers data between components inside a computer, or between computers.
Early computer buses were literally parallel electrical wires with multiple connections, but the term is now used for any physical arrangement that provides the same logical functionality as a parallel electrical bus. Modern computer buses can use both parallel and bit serial connections, and can be wired in either a multidrop (electrical parallel) or daisy chain topology, or connected by switched hubs, as in the case of USB.
在計算機體系結構總線是一個子系統,計算機內部組件,或計算機之間的數據傳輸。
早期的計算機總線字面平行與多個連接的電線,但現在任何身體上的安排,提供相同的邏輯功能作為一個平行的電氣總線使用的術語。可以使用現代計算機總線並行和位串行連接,並可以在任何一個多點(電氣並行)有線或菊花鏈拓撲,或通過交換集線器連接,在USB的情況下

第四週 Chp:4 系統單元的組成元件

Motherboard

In personal computers, a motherboard is the central printed circuit board (PCB) in many modern computers and holds many of the crucial components of the system, providing connectors for other peripherals. The motherboard is sometimes alternatively known as the mainboard, system board, or, on Apple computers, the logic board.[1] It is also sometimes casually shortened to mobo.
個人電腦主板中央印製電路板(PCB)在許多現代計算機擁有許多系統重要組成部分其他外圍設備連接有時主板或者主板,系統板,蘋果電腦邏輯板[1]它有時也被隨隨便便縮短主板


Port (disambiguation)



A port is a facility for receiving ships and transferring cargo.Computer port (hardware), a physical interface between a computer and other computers or devices
Computer port (software), a virtual data connection between computer programs possibly through a computer network Porting, the process of modifying software so as to make it compatible with other operating system and/or hardware architectures
Ports collection, part of the package management infrastructure of modern BSD-derived operating systems Port numbers which are recognized by Internet and other network protocols, enabling the computer to interact with others List of TCP and UDP port numbersPORT.hu, a Hungarian film, actor, television, sports, and theatre database

第四週 Chp:4 系統單元的組成元件

Cache

In addition to clock speed and architecture, a processor's cache and front side bus (FSB) speed also determine a computer's overall power. In brief, cache is a form of very fast memory integrated into the processor chip, and used to store up instructions (work for the processor) so that it has to slow down as little as possible between tasks. Cache is measured in megabytes (MB), with (for example) low-end Celeron processors having as little as 0.25MB of cache (256KB), and high-end Itaniums having up to 24MB. The simple message is, the more cache the better -- though high levels of cache still come at a very significant price.
除了時鐘速度架構處理器的高速緩存前端總線(FSB)速度也決定了計算機的整體實力簡而言之,緩存是一個非常快的內存集成到處理器芯片用於存儲指令處理器工作因此,它有減緩任務之間盡可能少形式緩存是衡量兆字節(MB例如低端賽揚0.25MB緩存(256KB)處理器高端安騰24MB簡單的消息更多的緩存更好 - 雖然仍處於一個非常重要價格層次的緩存
From: explainingcomputers.com

(1)CPU cache
Small memories on or close to the CPU can operate faster than the much larger main memory. Most CPUs since the 1980s have used one or more caches, and modern high-end embedded, desktop and server microprocessors may have as many as half a dozen, each specialized for a specific function. Examples of caches with a specific function are the D-cache and I-cache (data cache and instruction cache).
回憶靠近CPU可以操作速度比大得多主存儲器20世紀80年代大部分的CPU使用一個或多個高速緩存,現代高端嵌入式,桌面服務器微處理器中可能多達一半每個專門特定的功能具有特定功能高速緩存例子D-cache和緩存數據緩存和指令高速緩存

(2)Disk cache


While CPU caches are generally managed entirely by hardware, a variety of software manages other caches. The page cache in main memory, which is an example of disk cache, is managed by the operating system kernel.
While the hard drive's hardware disk buffer is sometimes misleadingly referred to as "disk cache", its main functions are write sequencing and read prefetching. Repeated cache hits are relatively rare, due to the small size of the buffer in comparison to the drive's capacity. However, high-end disk controllers often have their own on-board cache of hard disk data blocks.
Finally, fast local hard disk can also cache information held on even slower data storage devices, such as remote servers (web cache) or local tape drives or optical jukeboxes. Such a scheme is the main concept of hierarchical storage management. 
雖然CPU緩存一般是完全由硬件各種軟件管理緩存這是一個磁盤高速緩存例子在主內存中頁面緩存管理操作系統的內核

硬盤驅動器的硬件磁盤緩衝區誤導有時簡稱為“磁盤高速緩存其主要職能預取重複緩存命中率比較少見,由於緩衝區驅動器的容量比較大小然而,高端磁盤控制器通常自己的板上緩存硬盤中的數據

最後,快速的本地硬盤也可以緩存更慢數據存儲設備,如遠程服務器Web緩存本地磁帶驅動器光盤庫掌握的信息這項計劃分層存儲管理主要概念

 

 

第四週 Chp:4 系統單元的組成元件

ROM (Read-only memory)
Read-only memory (ROM) is a class of storage medium used in computers and other electronic devices. Data stored in ROM cannot be modified, or can be modified only slowly or with difficulty, so it is mainly used to distribute firmware (software that is very closely tied to specific hardware, and unlikely to need frequent updates) 
只讀存儲器(ROM)計算機及其他電子設備使用存儲介質 ROM中存儲的數據不能被修改以進行修改,只能緩慢或困難所以它主要用於分發是非常密切的依賴特定的硬件,並不太需要頻繁更新固件(軟件



RAM (Random access memory) 
Random access memory (RAM) is a form of computer data storage. Today, it takes the form of integrated circuits that allow stored data to be accessed in any order with a worst case performance of constant time. Strictly speaking, modern types of DRAM are therefore not random access, as data is read in bursts, although the name DRAM / RAM has stuck. However, many types of SRAM, ROM, OTP, and NOR flash are still random access even in a strict sense. RAM is often associated with volatile types of memory (such as DRAM memory modules), where its stored information is lost if the power is removed. Many other types of non-volatile memory are RAM as well, including most types of ROM and a type of flash memory called NOR-Flash. The first RAM modules to come into the market were created in 1951 and were sold until the late 1960s and early 1970s.
隨機存取存儲器(RAM)計算機數據存儲一種形式今天,它需要集成電路,允許以任何順序訪問一個常數時間糟糕情況下的性能存儲數據形式因此嚴格說來,現代的DRAM類型是不是隨機存取突發讀取數據雖然名字DRAM/內存然而,許多類型的SRAM,ROMOTP的和NOR閃存仍然是即使嚴格意義上隨機存取 RAM通常是揮發性類型的存儲器(如DRAM內存模塊存儲的信息丟失,如果電源被移走許多其他類型的非易失性內存的RAM,以及包括大多數類型的ROM和NOR閃存的閃存類型進入市場一個RAM模塊創建於1951年,直到60年代後期和70年代初出售

2012年3月22日 星期四

第四週 Chp:4 系統單元的組成元件

CPU (central processing unit)
The central processing unit (CPU) is the portion of a computer system that carries out the instructions of a computer program, to perform the basic arithmetical, logical, and input/output operations of the system. The CPU plays a role somewhat analogous to the brain in the computer. The term has been in use in the computer industry at least since the early 1960s. The form, design and implementation of CPUs have changed dramatically since the earliest examples, but their fundamental operation remains much the same.
中央處理單元(CPU)計算機系統進行計算機程序指令執行基本算術邏輯和輸入/輸出系統操作部分CPU所扮演的角色有點類似於計算機的大腦一詞至少20世紀60年代初一直計算機行業中使用的形式,設計實施的CPU已經發生了巨大的變化,因為最早的例子他們的基本操作仍然相同

第三週

乘法

M為被乘數
A為乘數

 當Q的尾數是1時
下一次的計算必須A加上Q
再進行移位(向右移一位)




 浮點表示法

1BIT         8BIT        23BIT
  ↓      ↓       ↓
S      E      F
符號位元   偏移指數   尾數
└─────────────────────┘
      23BIT

偏移值─127 真實指數

例題:



 O               1000011                         
符號位元       偏移指數
                           ?-127=4 
                           ?=131
                            131÷2使用短除法運算
                            得1000011



01101000000000000000000
                  尾數
               1.  01101→小數點後的數字補零到23位元
               ↓         
              捨去


錯誤碼更正
D7→1100
D6→1011
D5→1010
D4→1001
C8→1000
D3→0111
D2→0110
D1→0101
C4→0100
D0→0011
C2→0010
C1→0001

列出數列後將四個位元湊出偶數個一
例: C1→0001 經運算後得C1=1

C1=D0⊕D1⊕D3⊕D4⊕D6
     =
C2=D0⊕D2⊕D3⊕D5⊕D6
C3=D1⊕D2⊕D3⊕D7
C4=D4⊕D5⊕D6⊕D7

運算
                

 設原數值為:101110100110
 而傳送出來的數值為:101010100110
其中D4的位置的位元產生錯誤
預查出錯誤
算出C1,C2 ,C3,C4的數值
得到的數字則知道哪個位子的位元錯了
  


          




















     

2012年3月19日 星期一

第二週

在數字碼中
最做邊的位元昰符號位元
符號0代表的是正數
符號1代表的是負數
例如
+18的表示方法為:00010010
-18的表示方法為:10010010


1′s補數法
+1   0001      
+2   0010
+3   0011
4   0100
+5   0101
+6   0110
+7   0111
8   NO
-0    1111
  1110
-2    1101
3    1100     
-4    1011
-5    1010
-6    1001
7    1000
8    NO

2′s補數法
+0  0000 
+1  0001
+2  0010

+3  0011
+4  0100
+5  0101
+6  0110
+7  0111
+8  NO
-0  0000
-1  1111
-2  1110
-3  1101
-4  1100
-5  1011
-6  1010
-7  1001
-8  1000

1's與2′s補數法之運用與轉換