


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



(a)
extend transaction { keep address in [10..50]; keep soft address == select { 20: min; 60: others; 30: max; }; };
(b)
extend instr { keep soft opcode == select { 40: [ADD, ADDI, SUB, SUBI]; 20: [AND, ANDI, XOR, XORI]; 10: [JMP, CALL, RET, NOP]; ‘top.carry' * 90: JMPC; }; };
struct packet {
kind: [tx, rx]; size: byte; keep size > 15 => kind == rx; };
struct packet {
size: byte; kind: [tx, rx]; keep size > 15 => kind == rx; };
Num1 = %{Num2,Num3};
Num4 = pack(packing.high,num2,num3);
event enter_exec_st is (change('top.cpu.curr_FSM') and true('top.cpu.curr_FSM' == exec_st))@sys.cpuclk; event fetch1_assert is (change('top.fetch1') and true('top.fetch1' == 1))@sys.cpuclk; expect @enter_exec_st => { @fetch1_assert}@sys.cpuclk else dut_error("PROTOCOL ERROR");