Use cast before assignment to enum type to avoid Vivado errors

This commit is contained in:
Pirmin Vogel 2019-05-10 13:48:49 +01:00 committed by Alex Bradbury
parent 93b0b77f27
commit 967834db0c
2 changed files with 7 additions and 5 deletions

View file

@ -156,10 +156,10 @@ module ibex_controller (
csr_save_cause_o = 1'b0;
exc_cause_o = '0;
exc_cause_o = exc_cause_e'('0);
exc_pc_mux_o = EXC_PC_IRQ;
csr_cause_o = '0;
csr_cause_o = exc_cause_e'('0);
pc_mux_o = PC_BOOT;
pc_set_o = 1'b0;

View file

@ -371,9 +371,11 @@ module ibex_cs_registers #(
mcause_q <= '0;
depc_q <= '0;
dcsr_q <= '{
prv: PRIV_LVL_M,
default: '0
dcsr_q <= '{
xdebugver: x_debug_ver_e'('0),
cause: dbg_cause_e'('0),
prv: PRIV_LVL_M,
default: '0
};
dscratch0_q <= '0;
dscratch1_q <= '0;