TAILIEUCHUNG - Digital logic testing and simulation phần 2

Mạng lưới này được biên dịch thành mã máy của một tiền xử lý mà đọc mô tả của các mạch được thể hiện trong các phần tử logic và các loại lưới kết nối. Một bảng được gọi là PI_TABLE chứa một mục nhập cho mỗi đầu vào chính, | THE COMPILED SIMULATOR 47 AND MOV AX BX GaTe_TABLE 6 AX Compute E F J E F MOV AX gate_table Load value of G into AX MOV BX gate_table 2 Load value of H into BX OR AX BX compute G H MOV BX PI_TABLE 8 Load input E into Reg BX OR AX BX Compute result gate I MOV GaTe_TABLE 4 AX Store result for gate I MOV AX gate_table 4 Load value of I into AX MOV BX gate_table 6 Load value of J into BX XOR AX BX Compute I J MOV GaTe_TABLE 8 AX Store K I J RET The network is compiled into machine code by a preprocessor that reads a description of the circuit expressed in terms of logic elements and interconnecting nets. A table called PI_TABLE contains an entry for each primary input while another table called GATE_TABLE contains an entry for each gate in the circuit. There is a one-to-one correspondence between primary inputs and locations in PI_TABLE and between circuit nets and locations in GATE_TABLE. The first step in this simulation is to load the locations represented by PI_TABLE into Reg. AX and PI_TABLE 2 into Reg. BX. The values on the two primary inputs represented by these locations are ANDed together and the result stored in GATE_TABLE at a location corresponding to the output of gate G. The next group of instructions compute the value on the NAND gate H. Note that the host machine s XOR instruction is used together with the argument 0FFFFH to complement the result before storing it at GATE_TABLE 2. The remaining gates are processed in similar fashion and then the simulator returns to the calling program. Note that when simulating the exclusive-OR gate the simulator stores a result for gate I and then immediately loads the same value into Register AX. Since the simulator is called repetitively with many input vectors every effort should be made to optimize its performance. This can be done by rankordering the circuit. If a gate drives another gate all of whose other inputs have been processed then the destination gate satisfies the rank-order criteria and can be the next

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.