How can i instantiate a module inside an if statement in verilog?

后端 未结 2 1012
执笔经年
执笔经年 2021-01-28 15:39
if (btn[0] == 1)
    begin
        operaciones op(A,B,numop,C);
        display disp(C,led);
    end

I need to instantiate it inside this if, how can i

2条回答
  •  后悔当初
    2021-01-28 16:34

    Just to add on to what @Unn has said, what you really need to do instantiate your module and then have the enable signal for your module turned on (or off) in your if statement.

提交回复
热议问题