Commit 24c9bea1 authored by dbarbera's avatar dbarbera
Browse files

Initialize generated global state variable

parent 9223d26d
......@@ -96,7 +96,8 @@ def _process(process):
g.states[name] = cons
# Generate state var
g.module.add_global_variable(g.i32, 'state')
state_cons = g.module.add_global_variable(g.i32, 'state')
state_cons.initializer =, -1)
# Initialize output signals
for signal in process.output_signals:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment