A RISC-V SOC for Terahertz IoT Devices: Implementation and design challenges (Full Report)