Open dmlockhart opened 10 years ago
Conccurrent blocks should be decorated functions which take no params:
# Valid @s.tick def logic(): # Invalid @s.tick def logic2( some_param )
We previously caught invalid concurrent blocks at runtime, however we should be able to catch this at elaboration time:
raise Exception("Concurrent block '{}' must take no parameters!\n" "file: {}\n" "line: {}\n" "".format( func.func_name, func.func_code.co_filename, func.func_code.co_firstlineno ) )
Conccurrent blocks should be decorated functions which take no params:
We previously caught invalid concurrent blocks at runtime, however we should be able to catch this at elaboration time: