Individually, they both seem to work fine, but when you use them in the same chip, the clk block will not execute. Ex. code:
if (first()) {
runOnTick(1)
SPAM = "spammyspam"
} elseif (tickClk()) {
} elseif (clk()) {
print(SPAM)
}
interval(500)
Yes the runOnTick is completely useless for this code, but its just an example of how to reproduce the bug. Using both of these in the same chip is essential for optimization in a lot of projects. BTW, are there code tags for these comments?
Individually, they both seem to work fine, but when you use them in the same chip, the clk block will not execute. Ex. code:
if (first()) {
runOnTick(1)
SPAM = "spammyspam"
} elseif (tickClk()) {
} elseif (clk()) {
print(SPAM)
}
interval(500)
Yes the runOnTick is completely useless for this code, but its just an example of how to reproduce the bug. Using both of these in the same chip is essential for optimization in a lot of projects. BTW, are there code tags for these comments?