* Let the python simulator load the input memories from file.
authorunknown <s0042331@.dynamic.ewi.utwente.nl>
Tue, 1 Apr 2008 13:57:34 +0000 (15:57 +0200)
committerunknown <s0042331@.dynamic.ewi.utwente.nl>
Tue, 1 Apr 2008 13:57:34 +0000 (15:57 +0200)
 * Let the python simulator break when the algorithm is done (ie, gpo(0) is set).

simulate.py

index 9cf3ce6b7a1bb77c761e86e6de539f8cc1910ff4..871949ccef24adacbed9e7e9b16ff57e9e23cf2e 100644 (file)
@@ -3,8 +3,16 @@ import sys
 \r
 base_path = os.path.split(sys.argv[0])[0]\r
 \r
-binary_name = "Montium\FFT.mb"\r
-\r
+binary_name = os.path.join("Montium", "FFT.mb")\r
 simulate(os.path.join(base_path, binary_name))\r
 \r
-runUntilNotHold()
\ No newline at end of file
+loadMMFile('p0m0', os.path.join(base_path, 'Memory', 'sin_a_re.mm'))\r
+loadMMFile('p1m0', os.path.join(base_path, 'Memory', 'sin_a_im.mm'))\r
+loadMMFile('p2m0', os.path.join(base_path, 'Memory', 'sin_b_re.mm'))\r
+loadMMFile('p3m0', os.path.join(base_path, 'Memory', 'sin_b_im.mm'))\r
+loadMMFile('p4m0', os.path.join(base_path, 'Memory', 'twiddle_re.mm'))\r
+loadMMFile('p4m1', os.path.join(base_path, 'Memory', 'twiddle_im.mm'))\r
+\r
+addBreakpoint("gpo == 0b000001")\r
+\r
+runUntilNotHold()\r