You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is there any example about how to get some combinational block? grepping on the examples I found something but it all is related to the test and not the generated RTL I believe?
Hi SiliconKite, it's possible to do this, you only need usage Always() without parameters.
from veriloggen import *
m = Module("CombModule")
a = m.Input("a")
b = m.Input("b")
c = m.OutputReg("c")
m.Always()(
c(a ^ b)
)
m.to_verilog("CombModule.v")
Hi, is there any example about how to get some combinational block? grepping on the examples I found something but it all is related to the test and not the generated RTL I believe?
In other words, what I need to get is a block of this form.
always @ ( * ) begin
end
Ideally this block would have some more logic inside, some if-else maybe.
Is this possible?
The text was updated successfully, but these errors were encountered: