newBitWidth(bitWidth) {
        if (bitWidth < 1) return;
        const diffBitWidth = bitWidth - this.bitWidth;
        this.bitWidth = bitWidth; // ||parseInt(prompt("Enter bitWidth"),10);
        this.setWidth(this.bitWidth * 10);
        this.state = 0;
        this.output1.bitWidth = bitWidth;
        if (this.direction === 'RIGHT') {
            this.x -= 10 * diffBitWidth;
            this.output1.x = 10 * this.bitWidth;
            this.output1.leftx = 10 * this.bitWidth;
        } else if (this.direction === 'LEFT') {
            this.x += 10 * diffBitWidth;
            this.output1.x = -10 * this.bitWidth;
            this.output1.leftx = 10 * this.bitWidth;
        }
    }
@memberof Input
function to change bitwidth of the element
@param {number} bitWidth - new bitwidth