mirror of
https://github.com/MPSU/APS.git
synced 2025-09-15 17:20:10 +00:00
ЛР11. Добавлена задержка перед завершением тб
Тестбенч не успевал вернуться в бесконечный цикл после возврата из обработчика прерывания.
This commit is contained in:
@@ -42,6 +42,7 @@ module tb_irq_unit();
|
|||||||
@(posedge clk);
|
@(posedge clk);
|
||||||
end
|
end
|
||||||
unit.irq_req = 0;
|
unit.irq_req = 0;
|
||||||
|
repeat(20)@(posedge clk);
|
||||||
$display("\n The test is over \n See the internal signals of the module on the waveform \n");
|
$display("\n The test is over \n See the internal signals of the module on the waveform \n");
|
||||||
$finish;
|
$finish;
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user