Reading image files with VHDL part 2
Having set up a library for reading images, let’s now go on to read an image in! pgm_read Recall, we have a function: impure function pgm_read (filename : string) return pixel_array_ptr; So, some declarations - …
Browse the notebook
Having set up a library for reading images, let’s now go on to read an image in! pgm_read Recall, we have a function: impure function pgm_read (filename : string) return pixel_array_ptr; So, some declarations - …
Data storage One of the things VHDL can do (contrary to popular belief :)) is 2-D arrays. So reading images into a 2-D array is a very natural way to store the data. We’ll create a package called pgm to keep all …
Comments in code are very useful. But not as good as executable comments… I write image processing code at work. One of my FPGAs has a piece of code which generates a signal which has a hard-coded number of clock …
A couple of times recently, I’ve found myself staring at VHDL code that starts thus: library ieee; use ieee.std_logic_arith.all; and had to explain to the author that this is wrong. Yes, using an IEEE-library is …