Browse Source

compile all packages in library 'libvhdl' now & use the library in the testbenches

pull/1/head
T. Meissner 10 years ago
parent
commit
990a511776
4 changed files with 15 additions and 9 deletions
  1. +2
    -1
      sim/AssertP.vhd
  2. +4
    -2
      test/Makefile
  3. +5
    -3
      test/QueueT.vhd
  4. +4
    -3
      test/StringT.vhd

+ 2
- 1
sim/AssertP.vhd View File

@ -1,7 +1,8 @@
library ieee; library ieee;
use ieee.std_logic_1164.all; use ieee.std_logic_1164.all;
use work.StringP.all;
library libvhdl;
use libvhdl.StringP.all;


+ 4
- 2
test/Makefile View File

@ -5,12 +5,14 @@ VHD_STD = 02
sim: queuet stringt sim: queuet stringt
queuet : QueueT.vhd $(SIM_SRC)/QueueP.vhd $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd queuet : QueueT.vhd $(SIM_SRC)/QueueP.vhd $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd
ghdl -a --std=$(VHD_STD) $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/QueueP.vhd QueueT.vhd
ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd $(SIM_SRC)/QueueP.vhd
ghdl -a --std=$(VHD_STD) QueueT.vhd
ghdl -e --std=$(VHD_STD) QueueT ghdl -e --std=$(VHD_STD) QueueT
ghdl -r --std=$(VHD_STD) QueueT ghdl -r --std=$(VHD_STD) QueueT
stringt : StringT.vhd $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd stringt : StringT.vhd $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd
ghdl -a --std=$(VHD_STD) $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd StringT.vhd
ghdl -a --std=$(VHD_STD) --work=libvhdl $(SIM_SRC)/StringP.vhd $(SIM_SRC)/AssertP.vhd
ghdl -a --std=$(VHD_STD) StringT.vhd
ghdl -e --std=$(VHD_STD) StringT ghdl -e --std=$(VHD_STD) StringT
ghdl -r --std=$(VHD_STD) StringT ghdl -r --std=$(VHD_STD) StringT


+ 5
- 3
test/QueueT.vhd View File

@ -2,7 +2,9 @@ library ieee;
use ieee.std_logic_1164.all; use ieee.std_logic_1164.all;
use ieee.numeric_std.all; use ieee.numeric_std.all;
use work.AssertP.all;
library libvhdl;
use libvhdl.AssertP.all;
use libvhdl.QueueP.all;
@ -14,8 +16,8 @@ end entity QueueT;
architecture sim of QueueT is architecture sim of QueueT is
shared variable sv_simple_queue : work.QueueP.t_simple_queue;
shared variable sv_list_queue : work.QueueP.t_list_queue;
shared variable sv_simple_queue : t_simple_queue;
shared variable sv_list_queue : t_list_queue;
begin begin


+ 4
- 3
test/StringT.vhd View File

@ -2,8 +2,9 @@ library ieee;
use ieee.std_logic_1164.all; use ieee.std_logic_1164.all;
use ieee.numeric_std.all; use ieee.numeric_std.all;
use work.StringP.all;
use work.AssertP.all;
library libvhdl;
use libvhdl.StringP.all;
use libvhdl.AssertP.all;
@ -30,4 +31,4 @@ begin
end process StringTestP; end process StringTestP;
end architecture sim;
end architecture sim;

Loading…
Cancel
Save