TAILIEUCHUNG - VHDL Programming by Example phần 3

Lý do cho việc phân vùng thiết kế có thể liên quan đến tiêu chuẩn thiết kế C về nhiều thành phần được phép trên một tờ, hoặc nó có thể là một nhóm hợp lý mà nhà thiết kế tìm thấy dễ hiểu hơn. Tương tự cũng đúng với báo cáo khối. Khu vực tuyên bố trong một kiến trúc có thể được chia thành một số khu vực riêng biệt hợp lý. | 82 Chapter Four A typical enumerated type for a four-state simulation value system looks like this TYPE fourval IS X 0 1 Z This type contains four character literal values that each represent a unique state in the four-state value system. The values represent the following conditions X An unknown value 0 A logical 0 or false value 1 A logical 1 or true value Z A tristate or open collector value Character literals are needed for values 1 and 0 to separate these values from the integer values 1 and 0. It would be an error to use the values 1 and 0 in an enumerated type because these are integer values. The characters X and Z do not need quotes around them because they do not represent any other type but the quotes were used for uniformity. Another example of an enumerated type is shown here TYPE color IS red yellow blue green orange In this example the type values are very abstract that is not representing physical values that a signal might attain. The type values in type color are also all identifiers. Each identifier represents a unique value of the type therefore all identifiers of the type must be unique. Each identifier in the type has a specific position in the type determined by the order in which the identifier appears in the type. The first identifier has a position number of 0 the next a position number of 1 and so on. Chapter 5 Subprograms and Packages includes some examples using position numbers of a type. A typical use for an enumerated type would be representing all of the instructions for a microprocessor as an enumerated type. For instance an enumerated type for a very simple microprocessor could look like this TYPE instruction IS add sub lda ldb sta stb outa xfr The model that uses this type might look like this PACKAGE instr IS TYPE instruction IS add sub lda ldb sta stb outa xfr Data Types 83 END instr USE ENTITY mp IS PORT instr addr data END mp IN instruction IN INTEGER INOUT INTeGeR ARCHITECTURE mp OF mp IS BEGIN PROCESS instr .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.