Make registers expressions
A common pattern is
entity something(clk: clk, ...) -> T {
reg(clk) state = {
};
state
}
in this case it would be nice to implicitly return the state variable like so
entity something(clk: clk, ...) -> T {
reg(clk) state = {
}
}
If we didn't need the name of the binding, we could even get rid of the name in the reg, and just do let bindings, i.e.
let x = reg(clk) reset (..)
but this is not compatible with the implicit returns
Edited by Frans Skarman