• Kiến trúc máy tính và hợp ngữ - Chapter 7: SemanticsKiến trúc máy tính và hợp ngữ - Chapter 7: Semantics

    To be complete, an imperative language needs: Statement sequencing Conditional statement Looping statement

    ppt37 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1142 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - PipelineKiến trúc máy tính và hợp ngữ - Pipeline

    Lưu ý về Branch-Delay Slot: – Trường hợp xấu nhất: có thể luôn phải đặt 1 lệnh noop vào trong branch-delay slot – Trường hợp tốt hơn: có thể tìm được 1 lệnh trước lệnh rẽ nhánh để đặt trong branch-delay slot mà vẫn không làm ảnh hưởng chương trình • Thủ công: Tái cấu trúc thứ tự lệnh là cách làm phổ biến • Tự động: Compiler phải rất thông min...

    pdf33 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1030 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Chapter 7: Behavioral modelingKiến trúc máy tính và hợp ngữ - Chapter 7: Behavioral modeling

    A dynamic model that shows the different states through which a single object passes during its life in response to events, along with its responses and actions Typically not used for all objects Just for complex ones

    ppt22 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1291 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Chương 7: Java methodsKiến trúc máy tính và hợp ngữ - Chương 7: Java methods

    Can you have an if statement without an else? What are De Morgan’s Laws? Explain short-circuit evaluation. How long can an if-else-if sequence be?

    ppt30 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1103 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Chapter seven: Repeating processing tasks loop structuresKiến trúc máy tính và hợp ngữ - Chapter seven: Repeating processing tasks loop structures

    For Next versus Do Loop Variations Use a For Next loop when the number of loop iterations can be determined. Use a Do Loop variety only when the number of iterations depends on the results of statements inside the loop.

    pptChia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1112 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Chapter 6: Architectural designKiến trúc máy tính và hợp ngữ - Chapter 6: Architectural design

    Simple, informal block diagrams showing entities and relationships are the most frequently used method for documenting software architectures. But these have been criticised because they lack semantics, do not show the types of relationships between entities nor the visible properties of entities in the architecture. Depends on the use of archite...

    pptx54 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1262 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Chapter 6: Type systemsKiến trúc máy tính và hợp ngữ - Chapter 6: Type systems

    The type of an Expression e is: If e is a Value, then the type of that Value. If e is a Variable, then the type of that Variable. If e is a Binary op term1 term2, then: If op is arithmetic, then the (common) type of term1 or term2 If op is relational, && or ||, then bool If e is a Unary op term, then: If op is ! then bool

    ppt22 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1155 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Mạch logicKiến trúc máy tính và hợp ngữ - Mạch logic

    Dùng thêm 1 tín hiệu ngõ vào kích hoạt “Enabled” (thường là tín hiệu xung đồng hồ Clock - C) để điều khiển mạch – Enabled = 1 (Positive Clock Edge): mạch hoạt động như mạch lật RS Latch – Enabled = 0 (Negative Clock Edge): mạch bị vô hiệu hoá,  Q giữ nguyên giá trị  Q(t+1) = Q(t)  Chỉ khi tín hiệu Enabled đổi từ 0 sang 1 (positive edge tr...

    pdf92 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1086 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Data types, variables, and arithmeticKiến trúc máy tính và hợp ngữ - Data types, variables, and arithmetic

    To get the correct double result, use double constants or the cast operator: double ratio = 2.0 / 3; double ratio = 2 / 3.0; int m = ., n = .; double factor = (double)m / (double)n; double factor = (double)m / n; double r2 = n / 2.0;

    ppt32 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1192 | Lượt tải: 0

  • Kiến trúc máy tính và hợp ngữ - Chapter 6: Structural modelingKiến trúc máy tính và hợp ngữ - Chapter 6: Structural modeling

    Describe how classes relate to one another Three basic types in UML Generalization Enables inheritance of attributes and operations Aggregation Relates parts to wholes Association Miscellaneous relationships between classes

    ppt27 trang | Chia sẻ: huyhoang44 | Ngày: 17/03/2020 | Lượt xem: 1465 | Lượt tải: 0