From 1c10097d72e7a5e43e02b1ede5670f31725eb50b Mon Sep 17 00:00:00 2001 From: Andrei Solodovnikov Date: Sat, 12 Jul 2025 12:11:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9B=D0=A010.=20=D0=98=D1=81=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20tb=5Firq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Тестбенч не отлавливал ошибки из-за X-состояния. --- Labs/10. Interrupt subsystem/lab_10.tb_irq.sv | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Labs/10. Interrupt subsystem/lab_10.tb_irq.sv b/Labs/10. Interrupt subsystem/lab_10.tb_irq.sv index 4ff9333..ad98071 100644 --- a/Labs/10. Interrupt subsystem/lab_10.tb_irq.sv +++ b/Labs/10. Interrupt subsystem/lab_10.tb_irq.sv @@ -383,9 +383,9 @@ endtask //logic irq, irq_ret; task error_info(irq, irq_ret); - if (irq_o!=irq) begin $error("invalid irq_o = %b, expected value %b." , $sampled(irq_o ), irq ); err_count++; end - if (irq_ret_o!=irq_ret) begin $error("invalid irq_ret_o = %b, expected value %b." , $sampled(irq_ret_o), irq_ret); err_count++; end - if (irq_cause_o!=32'h8000_0010) begin $error("invalid irq_cause_o = %h, expected value 32'h8000_0010.", $sampled(irq_cause_o) ); err_count++; end + if (irq_o!==irq) begin $error("invalid irq_o = %b, expected value %b." , $sampled(irq_o ), irq ); err_count++; end + if (irq_ret_o!==irq_ret) begin $error("invalid irq_ret_o = %b, expected value %b." , $sampled(irq_ret_o), irq_ret); err_count++; end + if (irq_cause_o!==32'h8000_0010) begin $error("invalid irq_cause_o = %h, expected value 32'h8000_0010.", $sampled(irq_cause_o) ); err_count++; end endtask endmodule