The following is the verilog code for the core sobel module in our project.
The following is the full verilog code for the project.