ЛР11. Переименование DUT в тб

This commit is contained in:
Andrei Solodovnikov
2024-10-04 19:41:11 +03:00
committed by GitHub
parent f0f397e769
commit 4caa727f9f

View File

@@ -13,7 +13,7 @@ module lab_11_tb_processor_system();
reg clk; reg clk;
reg rst; reg rst;
processor_system system( processor_system DUT(
.clk_i(clk), .clk_i(clk),
.rst_i(rst) .rst_i(rst)
); );
@@ -30,16 +30,16 @@ module lab_11_tb_processor_system();
initial begin initial begin
$display( "\nTest has been started"); $display( "\nTest has been started");
system.irq_req = 0; DUT.irq_req = 0;
rst = 1; rst = 1;
#40; #40;
rst = 0; rst = 0;
repeat(20)@(posedge clk); repeat(20)@(posedge clk);
system.irq_req = 1; DUT.irq_req = 1;
while(system.irq_ret == 0) begin while(DUT.irq_ret == 0) begin
@(posedge clk); @(posedge clk);
end end
system.irq_req = 0; DUT.irq_req = 0;
repeat(20)@(posedge clk); 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;