Browse the notebook

Archive.

Reading image files with VHDL part 3

Having written a function to read a PGM image, how do we use it? Well, the testbench at the bottom of the pgm vhdl file has an example: variable i : pixel\_array\_ptr; -- Without the transpose function, we would have to …

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

libv - assert_equal, str, etc.

procedure assert_equal ( prefix'event : string; got, expected : integer; level : severity_level := error) is begin assert got = expected report prefix & " wrong. Got " & integer'image(got) & …

Oops

It’s been very kindly pointed out to me via email (by Tricky) that I was talking complete rubbish saying that VHDL is rubbish at 2d arrays. What I should’ve said was “VHDL is rubbish at arrays of other …