Encore SIM EDITOR SOFTWARE User's Guide Page 97

  • Download
  • Add to my manuals
  • Print
  • Page
    / 149
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
2-29
Modeling Your Design
$display("%-i"); // displays "top.d1"
end
endtask
function my_func;
input taskin;
begin
$display("%m"); // displays "top.my_func"
$display("%i"); // displays "top.d1.named"
$display("%-i"); // displays "top.d1"
end
endfunction
dev1 d1 (r1);
endmodule
module dev1(inport);
input inport;
initial
begin:named
reg namedreg;
$display("%m"); // displays "top.d1.named"
$display("%i"); // displays "top.d1.named"
$display("%-i"); // displays "top.d1"
namedreg=1;
top.my_task(namedreg);
namedreg = top.my_func(namedreg);
end
endmodule
Page view 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 148 149

Comments to this Manuals

No comments