ЛР10-11. Исправление кода прерывания

Код прерывания должен содержать единицу в старшем бите. Вместо этого
единица писалась в младший бит старшего ниббла.
This commit is contained in:
Andrei Solodovnikov
2024-04-30 10:10:20 +03:00
parent 40990d0c43
commit 9d886876c9
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -19,7 +19,7 @@ FFC28293
0062A023
0072A223
34202373
100003B7
800003B7
01038393
00731A63
0001A383

View File

@@ -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})