Skip to content

Latest commit

 

History

History
 
 

tut05

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Verilator+GUI Tutorial 5

Edge processing using Sobel filter.

The edge processing has been modified from:


Screenshot Sobel Horizontal 160x120


Screenshot Sobel Vertical 160x120


Change image size

To change the image size, you just have to change both src/main.cpp and rtl/edge_proc.v

In src/main.cpp change the following lines to the desired values, here for example to 640x480

const int IMG_COLS = 640; 
const int IMG_ROWS = 480; 

In rtl/edge_proc.v change the following lines to the same desired values

c_img_cols    = 640, // 10 bits
c_img_rows    = 480, //  9 bits

The achieved fps are much lower (less than 1fps):

Screenshot Sobel Horizontal 640x480