Dado o seguinte trecho de código em System Verilog.
...
rand bit [3:0] Instr;
rand bit [3:0] ALU_OP;
constraint todos_os_valores {
(Instr != 4’d0) -> (ALU_OP == 4’d0);
}
rand bit [3:0] Instr;
rand bit [3:0] ALU_OP;
constraint todos_os_valores {
(Instr != 4’d0) -> (ALU_OP == 4’d0);
}
Qual a probabilidade de se ter Instr == 4’d0 e ALU_OP == 4’d3?
Provas
Questão presente nas seguintes provas