New project structure

Rewrite of all functions

Signed-off-by: Jojojoppe <joppe@blondel.nl>
This commit is contained in:
2022-09-03 21:52:29 +02:00
parent cbcea361bb
commit 162aaf47a0
31 changed files with 209 additions and 2111 deletions

42
rbuild.py Executable file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env python
import remotesyn
import remotesyn.ISE as ISE
import configparser
import signal
import time
threads = []
def sighandler(sig, frame):
print("\nCRTL-C: stopping threads")
for t in threads:
t.stop();
exit(0);
if __name__=="__main__":
signal.signal(signal.SIGINT, sighandler)
config = configparser.ConfigParser()
config.read("project.cfg")
# Test local build
copy = remotesyn.copy_local(config)
synth = ISE.synth(config, copy, 'default')
threads.append(synth)
needed_files = synth.needed_files()
print(needed_files)
synth.start()
looping = True
while looping:
time.sleep(1)
looping = False
for t in threads:
if t.running:
looping = True