顯示具有 計算機組織 標籤的文章。 顯示所有文章
顯示具有 計算機組織 標籤的文章。 顯示所有文章

2014年4月5日 星期六

管線(Pipeline)

      管線,是現代計算機處理器中必不可少的部分,是指計算機指令處理過程拆分為多個步驟,將多個指令的執行動作重疊,以達到加速程式執行之目的,並通過多個硬體處理單元並行執行來加快指令執行速度。

Multithreading v.s. Multitasking v.s. Timesharing

程式具有多工(Multitasking) 多重處理(Multiprocessing)的能力 


什麼是執行緒 ?

n  支援多重處理的執行控制機制,它可以執行程式中任何一組相關且可與程式中其它部分多重並行處理程式片斷

2014年4月4日 星期五

Division


Division       Divisor:除數   Dividend:被除數

Issues
l  Divide by zero

l  Need to deal with signed values





Multiplication



第一版乘法運算及硬體
  • 乘積暫存器先預設為0
  • 如果每個步驟須花費一個時脈週期,這一版的乘法運算就要花費100個時脈週期才能完成。
流程圖













硬體結構














2014年4月3日 星期四

CISC v.s. RISC

Introduction 

   處理器的指令集可分為CISC(Complex Instruction Set Computer)RISC(Reduced Instruction Set Computer),在現代的處理器指令集設計中,兩者均有廣泛的應用,本文主要是兩種指令集特性及其應用的比較。  


Data race condition


      A race condition is an undesirable situation that occurs when a device or system attempts to perform two or more operations at the same time, but because of the nature of the device or system, the operations must be done in the proper sequence in order to be done correctly.

Synchronization and Asynchronization


        所謂的「同步(Synchronous)」,和「非同步(Asynchronous)」,是我們在撰寫程式或是開發系統時,常會聽到的形容詞。這兩種概念可以用在許多地方,包括描述程式設計的模式,所以,我們會看到所謂「同步程式設計(Synchronous Programming)」,以及「非同步程式設計(Asynchronous Programming)」。這兩個名詞分別描述了兩種不同的程式設計模式,但它們之間有什麼差別呢?