AlexWan
Full Member level 5
There are some code with OpenVera. I can't know about the meaning.
How to understand the "STOP | DOZE", "STOP | DBUG", ...? Could any one explain those code?
Thanks.
Code:
enum ModeType {STOP = 1, DOZE = 2, DBUG = 4, RESET = 8, SOFTRESET = 16};
rand reg[31:0] mode = 0;
constraint mode_constraint {
mode in {STOP, DOZE, DBUG, RESET,SOFTRESET,
STOP | DOZE, STOP | DBUG, STOP | RESET,STOP | SOFTRESET,
DOZE | DBUG, DOZE | RESET,DOZE | SOFTRESET,
DBUG | RESET, DBUG | SOFTRESET,
RESET |SOFTRESET};
}
How to understand the "STOP | DOZE", "STOP | DBUG", ...? Could any one explain those code?
Thanks.