TAILIEUCHUNG - Programming Language interface part 1

[ Team LiB ] Uses of PLI PLI provides a powerful capability to extend the Verilog language by allowing users to define their own utilities to access the internal design representation. PLI has various applications | Team LiB Uses of PLI PLI provides a powerful capability to extend the Verilog language by allowing users to define their own utilities to access the internal design representation. PLI has various applications. PLI can be used to define additional system tasks and functions. Typical examples are monitoring tasks stimulus tasks debugging tasks and complex operations that cannot be implemented with standard Verilog constructs. Application software like translators and delay calculators can be written with PLI. PLI can be used to extract design information such as hierarchy connectivity fanout and number of logic elements of a certain type. PLI can be used to write special-purpose or customized output display routines. Waveform viewers can use this file to generate waveforms logic connectivity source level browsers and hierarchy information. Routines that provide stimulus to the simulation can be written with PLI. The stimulus could be automatically generated or translated from some other form of stimulus. General Verilog-based application software can be written with PLI routines. This software will work with all Verilog simulators because of the uniform access provided by the PLI interface. Team LiB Team LiB Linking and Invocation of PLI Tasks Designers can write their own user-defined system tasks by using PLI library routines. However the Verilog simulator must know about the existence of the user-defined system task and its corresponding user-defined C function. This is done by linking the user-defined system task into the Verilog simulator. To understand the process let us consider the example of a simple system task hello_verilog. When invoked the task simply prints out a message Hello Verilog World . First the C routine that implements the task must be defined with PLI library routines. The C routine hello_verilog in the file is shown below. include include the file provided in release dir int hello_verilog io_printf Hello

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.