Add the ModelSim project.
authorMalte S. Stretz <mss@apache.org>
Thu, 9 Jul 2009 12:02:25 +0000 (14:02 +0200)
committerMalte S. Stretz <mss@apache.org>
Thu, 9 Jul 2009 12:02:25 +0000 (14:02 +0200)
Copy mgc_location_map.template to mgc_location_map and add the path to
this directory.  Oh, and the code in modelsim.tcl should work but
doesn't. Yes, ModelSim stuill sucks, just not as much anymore.

.gitignore
bos2k9.mpf.sh [deleted file]
mgc_location_map.template [new file with mode: 0644]
modelsim.tcl [new file with mode: 0644]

index d05c7c6..8566549 100644 (file)
@@ -10,3 +10,4 @@ transcript
 *.mpf
 *.mti
 vsim.*
+mgc_location_map
diff --git a/bos2k9.mpf.sh b/bos2k9.mpf.sh
deleted file mode 100755 (executable)
index 822b337..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/bash
-# TODO
-
-pfile=${0%.*}
-qfile=${pfile%.mpf}.qsf
-
-set_global_assignment() {
-  local name arg lib
-   while [ $# -gt 0 ]; do
-    case "$1" in
-      -name)
-        name=$2
-        arg=$3
-        shift 2
-      ;;
-      -library)
-        lib=$2
-        shift 1
-      ;;
-    esac
-    shift
-  done
-  lib=${lib:-work}
-  case "$name" in
-    PROJECT_OUTPUT_DIRECTORY)
-      outdir=$arg
-    ;;
-    VHDL_FILE)
-      echo $arg $lib
-    ;;
-  esac
-}
-
-while read cmd line; do
-  if type "$cmd" > /dev/null 2>&1; then
-    "$cmd" $line
-  fi
-done < $qfile
-
diff --git a/mgc_location_map.template b/mgc_location_map.template
new file mode 100644 (file)
index 0000000..0d7a5d4
--- /dev/null
@@ -0,0 +1,2 @@
+$SRC
+/path/to/this/directory
diff --git a/modelsim.tcl b/modelsim.tcl
new file mode 100644 (file)
index 0000000..4a50d35
--- /dev/null
@@ -0,0 +1,8 @@
+# This should work but doesn't. See
+# ModelSim User's Manual 6.4a Appendix B
+#  * http://www.model.com/resources/default.asp?sendto=/support/documentation/se/pdf_6.4a/modelsim_se_user.pdf
+# And
+#  * http://web.archive.org/web/20030419034330/http://www.model.com/resources/pref_variables/get_records_test.asp?Category=FileOperations
+
+#set SourceMap(SRC) "$env(MODELSIM)/.."
+#set SourceDir $SourceMap(SRC)