What is the difference between reg and wire in a verilog module

前端 未结 4 885
刺人心
刺人心 2020-11-27 15:15

What is the difference between a reg and a wire? When are we supposed to use reg and when are we supposed to use wire in a verilog module. I have also noticed sometimes that

4条回答
  •  心在旅途
    2020-11-27 15:55

    Simple difference between reg and wire is, the reg is used in combinational or sequential circuit in verilog and wire is used in combinational circuit

    reg is used to store a value but wire is continuely driven some thing and wire is connected to outport when module initialization but reg is con not connected

提交回复
热议问题