Skip to content

Commit

Permalink
ЛР10-11. Исправление кода прерывания
Browse files Browse the repository at this point in the history
Код прерывания должен содержать единицу в старшем бите. Вместо этого
единица писалась в младший бит старшего ниббла.
  • Loading branch information
HepoH3 committed Apr 30, 2024
1 parent 40990d0 commit 2b2d199
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Labs/11. Interrupt integration/irq_program.mem
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FFC28293
0062A023
0072A223
34202373
100003B7
800003B7
01038393
00731A63
0001A383
Expand Down
2 changes: 1 addition & 1 deletion Labs/Made-up modules/lab_10.irq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 2b2d199

Please sign in to comment.