Co-designing the hardware, ISA and software for RISC-V based tinyML processor