I wanna have a simple module that adds two std_logic_vectors. However, when using the code below with the + operator it does not synthesize.
library IEE
Don't use std_logic_arith
- I've written about this (at some length :).
Do use numeric_std - and do use the right type on your entity ports. If you are doing arithmetic, use numerical types (either integers, or (un)signed vectors, as appropriate). They'll synthesise perfectly well.
std_logic_vector
s are good for