Posts

Showing posts with the label Hardware Design

VERILOG : 3. Modules in Verilog

Image
Modules in Verilog – The Building Blocks of Digital Design When designing hardware in Verilog , everything revolves around modules . Think of a module as a blueprint or block that describes a piece of your circuit. Just like LEGO bricks, modules can be put together to build bigger systems. In this blog, we’ll explore what modules are, how ports connect them, examples of instantiation , and common rules to follow when using them. What is a Module? A module is the fundamental building block of Verilog designs. Every Verilog design is made up of one or more modules, which may represent anything from a simple gate to a full processor . You can instantiate a module inside another module, creating a design hierarchy. Example: A half adder can be one module. A full adder can be built by instantiating two half adders. An adder array can be built by instantiating multiple full adders. This modular approach keeps designs clean and scalable. Ports – Communicating with the ...