Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
9 views2 pages

Session 2

The document provides guidelines for writing Verilog modules based on circuit diagrams, emphasizing naming conventions and data types for output ports. It outlines the importance of determining whether outputs are continuously driven or change with input, and details the process of naming wires for effective code writing. Additionally, it lists various combinational circuits such as encoders, multiplexers, and adders as examples.

Uploaded by

Ruturaj Nakum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Session 2

The document provides guidelines for writing Verilog modules based on circuit diagrams, emphasizing naming conventions and data types for output ports. It outlines the importance of determining whether outputs are continuously driven or change with input, and details the process of naming wires for effective code writing. Additionally, it lists various combinational circuits such as encoders, multiplexers, and adders as examples.

Uploaded by

Ruturaj Nakum
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Session2

18 December 2024 15:04

How to write modules from diagram

Name of module or instance cannot start with a number


Literals for naming modules and variables and instances in verilog

To be able to describe circuit by looking at a its diagram, we need to first decide what data type output port will be
Will it be continuously driven?
Use of pre written gates or any submodule will continuously drive the output.
Or will it be changing at input changes (in procedural block)
Y=some_equation
While connecting gates or different submodules according to the provided diagram, we need to first name the number of wires required
Naming wires will help in writing the code for it.
Pre written gates have single output but some gates may have multiple inputs. To be able to connect correct signal to ip or op, rule is
that, we connect output signal first. Then rest of the inputs can be connected
Combinational ciruits
8to3 encoder
4x1 mux
1x4 demux
Excess3 to decimal code converter
2 bit adder
Full adder using half adder and required extra circuitory

You might also like