Skip to content

clk() and tickClk() in the same Expression2 #181

@shadowscion

Description

@shadowscion

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions