mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Commented about Sstvecd trap vector alignment
This commit is contained in:
parent
ee6a3f49f0
commit
a5087818ba
@ -158,7 +158,7 @@ module csr #(parameter
|
|||||||
assign TVecPlusCauseM = {TVecAlignedM[`XLEN-1:6], CauseM, 2'b00}; // 64-byte alignment allows concatenation rather than addition
|
assign TVecPlusCauseM = {TVecAlignedM[`XLEN-1:6], CauseM, 2'b00}; // 64-byte alignment allows concatenation rather than addition
|
||||||
mux2 #(`XLEN) trapvecmux(TVecAlignedM, TVecPlusCauseM, VectoredM, TrapVectorM);
|
mux2 #(`XLEN) trapvecmux(TVecAlignedM, TVecPlusCauseM, VectoredM, TrapVectorM);
|
||||||
end else
|
end else
|
||||||
assign TrapVectorM = TVecAlignedM;
|
assign TrapVectorM = TVecAlignedM; // unvectored interrupt handler can be at any word-aligned address. This is called Sstvecd
|
||||||
|
|
||||||
// Trap Returns
|
// Trap Returns
|
||||||
// A trap sets the PC to TrapVector
|
// A trap sets the PC to TrapVector
|
||||||
|
Loading…
Reference in New Issue
Block a user