mirror of
https://github.com/verilator/verilator.git
synced 2025-04-25 10:06:54 +00:00
Rename opRange->opSel to match AstRange. No functional change.
This commit is contained in:
parent
3a0babb47d
commit
7a86514505
@ -192,7 +192,7 @@ struct AstSel : public AstNodeTriop {
|
||||
}
|
||||
ASTNODE_NODE_FUNCS(Sel, SEL)
|
||||
virtual void numberOperate(V3Number& out, const V3Number& from, const V3Number& bit, const V3Number& width) {
|
||||
out.opRange(from, bit.toUInt()+width.toUInt()-1, bit.toUInt()); }
|
||||
out.opSel(from, bit.toUInt()+width.toUInt()-1, bit.toUInt()); }
|
||||
virtual string emitVerilog() { V3ERROR_NA; return ""; } // Implemented specially
|
||||
virtual string emitC() {
|
||||
return this->widthp()->isOne()
|
||||
|
@ -1185,7 +1185,7 @@ V3Number& V3Number::opExtendS (const V3Number& lhs) {
|
||||
}
|
||||
|
||||
V3Number& V3Number::opClean (const V3Number& lhs, uint32_t bits) {
|
||||
return opRange(lhs, bits-1, 0);
|
||||
return opSel(lhs, bits-1, 0);
|
||||
}
|
||||
|
||||
void V3Number::opCleanThis() {
|
||||
@ -1195,12 +1195,12 @@ void V3Number::opCleanThis() {
|
||||
}
|
||||
}
|
||||
|
||||
V3Number& V3Number::opRange (const V3Number& lhs, const V3Number& msb, const V3Number& lsb) {
|
||||
V3Number& V3Number::opSel (const V3Number& lhs, const V3Number& msb, const V3Number& lsb) {
|
||||
if (lsb.isFourState() || msb.isFourState()) return setAllBitsX();
|
||||
return opRange(lhs, msb.toUInt(), lsb.toUInt());
|
||||
return opSel(lhs, msb.toUInt(), lsb.toUInt());
|
||||
}
|
||||
|
||||
V3Number& V3Number::opRange (const V3Number& lhs, uint32_t msbval, uint32_t lsbval) {
|
||||
V3Number& V3Number::opSel (const V3Number& lhs, uint32_t msbval, uint32_t lsbval) {
|
||||
setZero();
|
||||
int ibit=lsbval;
|
||||
for(int bit=0; bit<this->width(); bit++) {
|
||||
|
@ -181,8 +181,8 @@ public:
|
||||
V3Number& opConcat (const V3Number& lhs, const V3Number& rhs);
|
||||
V3Number& opRepl (const V3Number& lhs, const V3Number& rhs);
|
||||
V3Number& opRepl (const V3Number& lhs, uint32_t rhs);
|
||||
V3Number& opRange (const V3Number& lhs, const V3Number& rhs, const V3Number& ths);
|
||||
V3Number& opRange (const V3Number& lhs, uint32_t rhs, uint32_t ths);
|
||||
V3Number& opSel (const V3Number& lhs, const V3Number& rhs, const V3Number& ths);
|
||||
V3Number& opSel (const V3Number& lhs, uint32_t rhs, uint32_t ths);
|
||||
V3Number& opCond (const V3Number& lhs, const V3Number& rhs, const V3Number& ths);
|
||||
V3Number& opCaseEq (const V3Number& lhs, const V3Number& rhs);
|
||||
V3Number& opCaseNeq (const V3Number& lhs, const V3Number& rhs);
|
||||
|
Loading…
Reference in New Issue
Block a user