Verilog and Matlab simulation are particularly useful because it reveals the comparisons between hardware and software. Fig. 6 shows the outputs of both Verilog and Matlab implementations. The comparison between Matlab and Verilog results revealed that there is no computational error.