A LGPLv3 licensed library of reusable components for VHDL designs and testbenches
##sim (Non) synthesible components for testbenches
Package with various assertion procedures
assert_true(x[, str])
checks if boolean x = false, prints string str to console str when givenassert_false(x[, str])
checks if boolean x = false, prints string str to console str when givenassert_equal(x, y[, str])
checks if x = y, prints string str to console str when givenassert_unequal(x, y[, str])
checks if x /= y, prints string str to console str when givenPackage with various components general useful for simulation
wait_cycles(x, n)
waits for n rising edges on std_logic signal xspi_master()
configurable master for SPI protocolspi_slave()
configurable slave for SPI protocolPackage with various functions to convert to string
to_char(x)
returns string with binary value of std_logic xto_string(x)
returns string with binary value of std_logic_vector xPackage with various implementations of queue types:
t_simple_queue
simple array based FIFO queuet_list_queue
linked list FIFO queue using access types##test Unit tests for each component
Units tests for components of QueueP package
Units tests for components of SimP package
Units tests for components of SimP package
To run the tests, you have to install GHDL. You can get it from http://sourceforge.net/projects/ghdl-updates/.
Type make
and you should see the successfully running tests
$ make
ghdl -a --std=02 ../sim/QueueP.vhd QueueT.vhd
ghdl -e --std=02 QueueT
ghdl -r --std=02 QueueT
QueueT.vhd:52:5:@0ms:(report note): INFO: t_simple_queue test finished successfully
QueueT.vhd:87:5:@0ms:(report note): INFO: t_list_queue test finished successfully