Computer Organization and Design
Depending on where you need to start you might to begin with some of the appendices for intro to digital logic but It's all there
ARM edition RISC-V edition