Browse the notebook

VHDL.

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 - …

Executable comments

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 …

Numbers in VHDL

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 …