set op3 = op3val;
set Name = name;
set Inst{13} = 0; // i field = 0
- //set Inst{12-5} = dontcare;
+ set Inst{12-5} = 0; // don't care
}
// The store instructions seem to like to see rd first, then rs1 and rs2
set op3 = op3val;
set Name = name;
set Inst{13} = 0; // i field = 0
- //set Inst{12-5} = dontcare;
+ set Inst{12-5} = 0; // don't care
}
class F3_2<bits<2> opVal, bits<6> op3val, string name> : F3_rs1simm13rd {
set op = opVal;
set op3 = op3val;
set Name = name;
+ set Inst{29-25} = 0; // don't care
set Inst{13} = 0;
+ set Inst{12-5} = 0; // don't care
}
class F3_4<bits<2> opVal, bits<6> op3Val, string name> : F3_rs1simm13 {
set op = opVal;
set op3 = op3Val;
set Name = name;
- //set Inst{29-25} = dontcare;
+ set Inst{29-25} = 0; // don't care
set Inst{13} = 1;
set Inst{12-0} = simm;
}
set Name = name;
set Inst{13} = 0; // i field = 0
set Inst{12-10} = rcondVal; // rcond field
+ set Inst{9-5} = 0; // don't care
}
class F3_6<bits<2> opVal, bits<6> op3Val, bits<3> rcondVal,
set op = opVal;
set op3 = op3Val;
set Name = name;
+ set Inst{29-25} = rd;
set Inst{13} = 1; // i field = 1
set Inst{12-10} = rcondVal; // rcond field
+ set Inst{9-0} = simm10;
}
//FIXME: classes 7-10 not defined!!
set Name = name;
set Inst{13} = 0; // i field = 0
set Inst{12} = x;
- //set Inst{11-5} = dontcare;
+ set Inst{11-5} = 0; // don't care
}
class F3_12<bits<2> opVal, bits<6> op3Val, string name> : F3_rs1 {
set Inst{29-25} = rd;
set Inst{13} = 1; // i field = 1
set Inst{12} = 0; // x field = 0
- //set Inst{11-5} = dontcare;
+ set Inst{11-5} = 0; // don't care
set Inst{4-0} = shcnt;
}
set Inst{29-25} = rd;
set Inst{13} = 1; // i field = 1
set Inst{12} = 1; // x field = 1
- //set Inst{11-6} = dontcare;
+ set Inst{11-6} = 0; // don't care
set Inst{5-0} = shcnt;
}
set op = opVal;
set op3 = op3Val;
set Name = name;
- //set Inst{18-14} = dontcare;
+ set Inst{18-14} = 0; // don't care
set Inst{13-5} = opfVal;
}
set op = opVal;
set op3 = op3Val;
set Name = name;
+ set Inst{29-27} = 0; // defined to be zero
set Inst{26-25} = cc;
set Inst{18-14} = rs1;
set Inst{13-5} = opfVal;
set op = opVal;
set op3 = op3Val;
set Name = name;
- //Inst{13-0} = dontcare;
+ set Inst{13-0} = 0; // don't care
}
class F3_18<bits<5> fcn, string name> : F3 {
set op3 = 0b111110;
set Name = name;
set Inst{29-25} = fcn;
- //set Inst{18-0 } = dontcare;
+ set Inst{18-0 } = 0; // don't care;
}
class F3_19<bits<2> opVal, bits<6> op3Val, string name> : F3_rd {
set op = opVal;
set op3 = op3Val;
set Name = name;
- //Inst{18-0} = dontcare;
+ set Inst{18-0} = 0; // don't care
}
// FIXME: class F3_20
// F4_rs1 - Common class of instructions that use an rs1 field
class F4_rs1 : F4 {
bits<5> rs1;
- //set Inst{29-25} = dontcare;
set Inst{18-14} = rs1;
}
// F4_rs1rs2 - Common class of instructions that have rs1 and rs2 fields
class F4_rs1rs2 : F4_rs1 {
bits<5> rs2;
- //set Inst{12-5} = dontcare;
set Inst{4-0} = rs2;
}
set Name = name;
set Inst{13} = 0; // i bit
set Inst{12-11} = cc;
- //set Inst{10-5} = dontcare;
+ set Inst{10-5} = 0; // don't care
}
class F4_2<bits<2> opVal, bits<6> op3Val, string name> : F4_rs1simm11rd {
set Name = name;
set Inst{29-25} = rd;
set Inst{13} = 0; // i bit
- //set Inst{10-5} = dontcare;
+ set Inst{10-5} = 0; // don't care
set Inst{4-0} = rs2;
}