🐛 Make misa a true WARL field

This commit is contained in:
Florian Zaruba 2017-07-12 18:32:28 +02:00
parent 2c3fd21fc8
commit dc3bae683d

View file

@ -282,6 +282,8 @@ module csr_regfile #(
// this register has side-effects on other registers, flush the pipeline
flush_o = 1'b1;
end
// MISA is WARL (Write Any Value, Reads Legal Value)
CSR_MISA:;
// machine exception delegation register
// 0 - 15 exceptions supported
CSR_MEDELEG: medeleg_n = csr_wdata & 64'hF7FF;
@ -656,4 +658,4 @@ module csr_regfile #(
time_q <= time_n;
end
end
endmodule
endmodule