From 8a8fdd8103c465b3090dfb8b7b90a1f8b8632ed8 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 1 Apr 2008 15:57:34 +0200 Subject: [PATCH] * 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). --- simulate.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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() -- 2.30.2