test.v

来自「systemverilog程序」· Verilog 代码 · 共 41 行

V
41
字号
program automatic test (arb_if arbif);task reset_test();  begin   $display("Task reset_test: asserting and checking reset");// LAB: Add reset logic  here  endendtasktask request_grant_test();  // Test out bit 0  $display("Task request_grant_test: asserting and checking reset");  ##1 arbif.cb.request <= 2'b01;  @arbif.cb;  @arbif.cb;  @(arbif.cb) a2: assert (arbif.cb.grant == 2'b01);  // LAB: Add your grant test here for the rest of the bitsendtaskinitial begin  repeat (10) @arbif.cb;  reset_test();  request_grant_test();  repeat (10) @arbif.cb;  $finish;endendprogram

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?