TAILIEUCHUNG - Sequential Verulog Topics part 3

Switch-Modeling Elements Verilog provides various constructs to model switch-level circuits. Digital circuits at MOS-transistor level are described using these elements.[1] | Switch-Modeling Elements Verilog provides various constructs to model switch-level circuits. Digital circuits at MOS-transistor level are described using these 1 Array of instances can be defined for switches. Array of instances is described in Section Array of Instances. MOS Switches Two types of MOS switches can be defined with the keywords nmos and pmos. MOS switch keywords nmos pmos Keyword nmos is used to model NMOS transistors keyword pmos is used to model PMOS transistors. The symbols for nmos and pmos switches are shown in Figure 11-1. Figure 11-1. NMOS and PMOS Switches In Verilog nmos and pmos switches are instantiated as shown in Example 11-1. Example 11-1 Instantiation of NMOS and PMOS Switches nmos n1 out data control instantiate a nmos switch pmos p1 out data control instantiate a pmos switch Since switches are Verilog primitives like logic gates the name of the instance is optional. Therefore it is acceptable to instantiate a switch without assigning an instance name. nmos out data control instantiate an nmos switch no instance name pmos out data control instantiate a pmos switch no instance name The value of the out signal is determined from the values of data and control signals. Logic tables for out are shown in Table 11-1. Some combinations of data and control signals cause the gates to output to either a 1 or 0 or to an z value without a preference for either value. The symbol L stands for 0 or z H stands for 1 or z. Table 11-1. Logic Tables for NMOS and PMOS Thus the nmos switch conducts when its control signal is 1. If the control signal is 0 the output assumes a high impedance value. Similarly a pmos switch conducts if the control signal is 0. CMOS Switches CMOS switches are declared with the keyword cmos. A cmos device can be modeled with a nmos and a pmos device. The symbol for a cmos switch is shown in Figure 11-2. Figure 11-2. CMOS Switch A cmos switch is instantiated as shown in Example 11-2. Example

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.