Soraya
นางสาว โศรยา สวย กัลยาวดี

Arithmetic logic unit (ALU)


Arithmetic logic unit (ALU)
หน่วยตรรกะเลขคณิต (ALU)
บทความหลัก : หน่วยตรรกะเลขคณิต
ALU มีความสามารถในการดำเนินการสองชั้นของการดำเนินงาน : คณิตศาสตร์และตรรกะ 
ชุดของที่ดำเนินการทางคณิตศาสตร์ที่รองรับการ ALU โดยเฉพาะอาจจะ จำกัด การเพิ่มและการลบ, หรืออาจรวมถึงคูณหาร, ตรีโกณมิติ ฟังก์ชันเช่นไซน์, โคไซน์, ฯลฯ และ รากที่สอง . บางคนเท่านั้นที่สามารถทำงานบนตัวเลขทั้งหมด ( จำนวนเต็ม ) ในขณะที่คนอื่นใช้ จุดลอย เพื่อแสดง ตัวเลขจริง แม้ว่ามีความแม่นยำ จำกัด อย่างไรก็ตามคอมพิวเตอร์ที่มีความสามารถในการดำเนินการเพียงแค่การดำเนินการใด ๆ ที่ง่ายที่สุดที่สามารถตั้งโปรแกรมให้ทำลายลงการดำเนินงานที่ซับซ้อนมากขึ้นในขั้นตอนง่ายๆที่สามารถดำเนินการ ดังนั้นเครื่องคอมพิวเตอร์ใด ๆ ที่สามารถตั้งโปรแกรมให้ดำเนินการทางคณิตศาสตร์การดำเนินการใด ๆ แม้ว่ามันจะใช้เวลามากขึ้นที่จะทำดังนั้นหาก ALU มันไม่ได้โดยตรงสนับสนุนการดำเนินการ ALU ยังอาจเปรียบเทียบตัวเลขและส่งกลับ ค่าความจริง boolean (true หรือ false) ขึ้นอยู่กับว่าอย่างใดอย่างหนึ่งจะมีค่าเท่ากับมากกว่าหรือน้อยกว่าที่อื่น ๆ ("เป็น 64 สูงกว่า 65?")
การดำเนินงานที่เกี่ยวข้องกับการลอจิก ตรรกะบูลีน : และ , หรือ , XOR และ ไม่ . เหล่านี้จะเป็นประโยชน์สำหรับการสร้างที่ซับซ้อน งบเงื่อนไข และการประมวลผล ทางตรรกะบูลีน .
superscalar คอมพิวเตอร์อาจจะมีหลาย ALUs ช่วยให้พวกเขาที่จะดำเนินการพร้อมกันหลายคำแนะนำ [41] กราฟิกโปรเซสเซอร์ และเครื่องคอมพิวเตอร์ที่มี SIMD และ MIMD มักจะมีคุณสมบัติ ALUs ที่สามารถดำเนินการทางคณิตศาสตร์เกี่ยวกับ เวกเตอร์ และ เมทริกซ์ .
 
Arithmetic logic unit (ALU)
Main article: Arithmetic logic unit
The ALU is capable of performing two classes of operations: arithmetic and logic.
The set of arithmetic operations that a particular ALU supports may be limited to addition and subtraction, or might include multiplication, division, trigonometry functions such as sine, cosine, etc., and square roots. Some can only operate on whole numbers (integers) whilst others use floating point to represent real numbers, albeit with limited precision. However, any computer that is capable of performing just the simplest operations can be programmed to break down the more complex operations into simple steps that it can perform. Therefore, any computer can be programmed to perform any arithmetic operation—although it will take more time to do so if its ALU does not directly support the operation. An ALU may also compare numbers and return boolean truth values (true or false) depending on whether one is equal to, greater than or less than the other ("is 64 greater than 65?").
Logic operations involve Boolean logic: AND, OR, XOR and NOT. These can be useful for creating complicated conditional statements and processing boolean logic.
Superscalar computers may contain multiple ALUs, allowing them to process several instructions simultaneously.[41] Graphics processors and computers with SIMD and MIMD features often contain ALUs that can perform arithmetic on vectors and matrices.





 
หมายเลขบันทึก: 475894เขียนเมื่อ 23 มกราคม 2012 19:33 น. ()แก้ไขเมื่อ 10 มิถุนายน 2012 10:44 น. ()สัญญาอนุญาต: ครีเอทีฟคอมมอนส์แบบ แสดงที่มา-ไม่ใช้เพื่อการค้า-อนุญาตแบบเดียวกันจำนวนที่อ่านจำนวนที่อ่าน:


ความเห็น (8)

บทความเป็นประโยชน์ต่อการเรียน ใช้ได้ๆ

ข้อมูลน่าสนใจดีครับ เป้นประโยชน์มากๆๆๆๆ

พบปัญหาการใช้งานกรุณาแจ้ง LINE ID @gotoknow
ClassStart
ระบบจัดการการเรียนการสอนผ่านอินเทอร์เน็ต
ทั้งเว็บทั้งแอปใช้งานฟรี
ClassStart Books
โครงการหนังสือจากคลาสสตาร์ท