Forum Discussion
Altera_Forum
Honored Contributor
14 years agoProblem with Always block
I have an Always block that is supposed to run when variable a assigned to 1. But it actually runs anytime when synthesising in Quartus. Can anyone help me resolve it? :confused:
module mai...
Altera_Forum
Honored Contributor
14 years agoYes it will offcourse, i did mention it in my previous post.
Look "a" has to be some parameter or a static signal. You cannot control synthesis of a logic based on a variable which is either in the portlist or defined as a signal. Now if you have "a" as a parameter then you can do something like this parameter a = 1'b1 generate if (a==1'b1) begin always @ * begin //code end end but i dont think if a is a signal then you can control synthesis of the code.