-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathOSVVM.files
50 lines (49 loc) · 2.24 KB
/
OSVVM.files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# EMACS settings: -*- tab-width: 2; indent-tabs-mode: t -*-
# vim: tabstop=2:shiftwidth=2:noexpandtab
# kate: tab-width 2; replace-tabs off; indent-width 2;
# ==============================================================================
# Note: all files are relative to PoC root directory
#
path PreCompiled = ${CONFIG.DirectoryNames:PrecompiledFiles}
path OSVVM_Directory = "osvvm"
if (VHDLVersion < 2008) then
report "OSVVM requires VHDL-2008; See OSVVM documentation for VHDL-2002 support."
elseif (VHDLVersion = 2008) then
if (Tool = "GHDL") then
path GHDLPath = (PreCompiled / ${CONFIG.DirectoryNames:GHDLFiles})
if ?{((GHDLPath / OSVVM_Directory) / "v08/osvvm-obj08.cf")} then
library osvvm GHDLPath
else
report "No precompiled OSVVM library for GHDL found."
end if
elseif (Tool = "Mentor_vSim") then
path OSVVM_LibraryPath = (PreCompiled / (${CONFIG.DirectoryNames:QuestaSimFiles} / OSVVM_Directory))
if ?{OSVVM_LibraryPath} then
library osvvm OSVVM_LibraryPath
else
report "No precompiled OSVVM library for QuestaSim/ModelSim found."
end if
else
# TODO self-compile section?
vhdl osvvm "lib/osvvm/NamePkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/OsvvmGlobalPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/VendorCovApiPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/TranscriptPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/TextUtilPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/AlertLogPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/MessagePkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/SortListPkg_int.vhd" # OSVVM
vhdl osvvm "lib/osvvm/RandomBasePkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/RandomPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/CoveragePkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/MemoryPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/ScoreboardGenericPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/ScoreboardPkg_slv.vhd" # OSVVM
vhdl osvvm "lib/osvvm/ScoreboardPkg_int.vhd" # OSVVM
vhdl osvvm "lib/osvvm/ResolutionPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/TbUtilPkg.vhd" # OSVVM
vhdl osvvm "lib/osvvm/OsvvmContext.vhd" # OSVVM
end if
else
report "VHDL version not supported by OSVVM."
end if