diff --git a/Labs/10. Interrupt subsystem/tb_irq.sv b/Labs/10. Interrupt subsystem/tb_irq.sv index 8431466..72b5a19 100644 --- a/Labs/10. Interrupt subsystem/tb_irq.sv +++ b/Labs/10. Interrupt subsystem/tb_irq.sv @@ -385,7 +385,7 @@ endtask task eror_info(irq, irq_ret); if (irq_o!=irq) begin $error("invalid irq_o = %b, expected value %b." , irq_o, irq ); err_count++; end if (irq_ret_o!=irq_ret) begin $error("invalid irq_ret_o = %b, expected value %b." , irq_ret_o, irq_ret); err_count++; end - if (irq_cause_o!=32'h1000_0010) begin $error("invalid irq_cause_o = %h, expected value 32'h1000_0010.", irq_cause_o ); err_count++; end + if (irq_cause_o!=32'h8000_0010) begin $error("invalid irq_cause_o = %h, expected value 32'h8000_0010.", irq_cause_o ); err_count++; end endtask endmodule diff --git a/Labs/11. Interrupt integration/irq_program.mem b/Labs/11. Interrupt integration/irq_program.mem index 623a546..844bad4 100644 --- a/Labs/11. Interrupt integration/irq_program.mem +++ b/Labs/11. Interrupt integration/irq_program.mem @@ -19,7 +19,7 @@ FFC28293 0062A023 0072A223 34202373 -100003B7 +800003B7 01038393 00731A63 0001A383 diff --git a/Labs/Made-up modules/lab_10.irq.sv b/Labs/Made-up modules/lab_10.irq.sv index 46f7f3e..bd82639 100644 --- a/Labs/Made-up modules/lab_10.irq.sv +++ b/Labs/Made-up modules/lab_10.irq.sv @@ -72,7 +72,7 @@ always_ff @(posedge clk_i) begin end end -assign irq_cause_o = 32'h1000_0010 | 32'haaaaaaaa & 32'h55555555; +assign irq_cause_o = 32'h8000_0010 | 32'haaaaaaaa & 32'h55555555; always_comb begin case({irq_req_i, mie_i, exception_i, exc_h, irq_h})