Verilog Programming part 25
lượt xem 9
download
8.1 Differences between Tasks and Functions Tasks and functions serve different purposes in Verilog. We discuss tasks and functions in greater detail in the following sections. However, first it is important to understand differences between tasks and functions, as outlined in Table 8-1. Table 8-1. Tasks and Functions Functions A function can enable another function but not another task. Functions always execute in 0 simulation time. Functions must not contain any delay, event, or timing control statements. Functions must have at least one input argument. They can have more than one input. Functions always return a single value. They cannot...
Bình luận(0) Đăng nhập để gửi bình luận!
CÓ THỂ BẠN MUỐN DOWNLOAD