1
0
mirror of https://github.com/olofk/serv.git synced 2026-02-23 23:22:18 +00:00

Handle misaligned jal

This commit is contained in:
Olof Kindgren
2018-11-15 08:49:29 +01:00
parent a92c933af1
commit aa0e3aa77e
4 changed files with 23 additions and 8 deletions

View File

@@ -11,6 +11,7 @@ module serv_ctrl
input i_trap,
input i_csr_pc,
output o_rd,
output o_bad_pc,
output [31:0] o_ibus_adr,
output reg o_ibus_cyc = 1'b0,
input i_ibus_ack);
@@ -31,6 +32,7 @@ module serv_ctrl
assign plus_4 = en_2r & !en_3r;
assign o_ibus_adr[0] = pc;
assign o_bad_pc = pc_plus_offset;
ser_add ser_add_pc_plus_4
(