fixed ghdl -dep noauto
added sim -tests
changed ghdl and sim_base so that all compilation occurs before sim