From: unknown Date: Tue, 1 Apr 2008 13:57:34 +0000 (+0200) Subject: * Let the python simulator load the input memories from file. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=8a8fdd8103c465b3090dfb8b7b90a1f8b8632ed8;p=matthijs%2Fprojects%2Fmontium-fft.git * Let the python simulator load the input memories from file. * Let the python simulator break when the algorithm is done (ie, gpo(0) is set). --- diff --git a/simulate.py b/simulate.py index 9cf3ce6..871949c 100644 --- a/simulate.py +++ b/simulate.py @@ -3,8 +3,16 @@ import sys base_path = os.path.split(sys.argv[0])[0] -binary_name = "Montium\FFT.mb" - +binary_name = os.path.join("Montium", "FFT.mb") simulate(os.path.join(base_path, binary_name)) -runUntilNotHold() \ No newline at end of file +loadMMFile('p0m0', os.path.join(base_path, 'Memory', 'sin_a_re.mm')) +loadMMFile('p1m0', os.path.join(base_path, 'Memory', 'sin_a_im.mm')) +loadMMFile('p2m0', os.path.join(base_path, 'Memory', 'sin_b_re.mm')) +loadMMFile('p3m0', os.path.join(base_path, 'Memory', 'sin_b_im.mm')) +loadMMFile('p4m0', os.path.join(base_path, 'Memory', 'twiddle_re.mm')) +loadMMFile('p4m1', os.path.join(base_path, 'Memory', 'twiddle_im.mm')) + +addBreakpoint("gpo == 0b000001") + +runUntilNotHold()