Documente Academic
Documente Profesional
Documente Cultură
I. INTRODUCTION
Verilog is a Hardware Description Language; a
textual format for describing electronic circuits and
systems. Applied to electronic design, Verilog is
intended to be used for verification through
simulation, for timing analysis, for test analysis
(testability analysis and fault grading) and for logic
synthesis. The first version of the IEEE standard for
Verilog was published in 1995. A revised version
was published in 2001; this is the version used by
most Verilog users. SystemVerilog is a huge set of
extensions to Verilog, and was first published as an
IEEE standard in 2005.
The designers of Verilog wanted a language
with syntax similar to the C programming language.
Like C, Verilog is case-sensitive and has a basic preprocessor. Its control flow keywords are equivalent,
and its operator precedence is compatible with C, a
difference is that Verilog requires that variables be
given a definite size and consists of a hierarchy of
modules. Modules encapsulate design hierarchy,
and communicate with other modules through a set
of declared input, output, and bidirectional ports.
Sequential statements are placed inside a begin/end
block and executed in sequential order within the
block. However, the blocks themselves are executed
concurrently, making Verilog a dataflow language.
Subsets of statements in the Verilog language are
synthesizable. Verilog modules that conform to a
synthesizable coding style, known as registertransfer level or RTL, can be physically realized by
synthesis
software.
Synthesis
software
algorithmically transforms the abstract Verilog
source into a net list, a logically equivalent
description consisting only of elementary logic
primitives such as AND, OR, NOT, flip-flops, etc.,
that are available in a specific FPGA or VLSI
technology. Further manipulations to the netlist
ultimately lead to a circuit fabrication blueprint.
A type of Verilog that we will be using the
Quartus Prime Verilog, which is a software designed
by Intel. Quartus Prime design software includes
everything you need to design for Intel FPGAs,
SoCs, and CPLDs from design entry and synthesis
to optimization, verification, and simulation.
Dramatically increased capabilities on devices with
multi-million logic elements are providing designers
with the ideal platform to meet next-generation
design opportunities. For designers to effectively
II. OBJECTIVES
The objectives of this experiment are, first,
to understand the basic concepts of the Verilog
Hardware Description Language (Verilog
HDL) through the simulation and coding of
various digital logic circuits, second, to
synthesize coded circuits through Quartus
Primes register-transfer level (RTL), and
finally to compare the Verilog syntax similarity
to other programming languages.
III. CODE
NOT Gate
module notgate (i,o);
input i;
output o;
assign o = !i;
endmodule
AND Gate
module andgate (i1, i2, o);
input i1, i2;
output o;
assign o = i1 & i2;
endmodule
OR Gate
module orgate (i1, i2, o);
input i1, i2;
output o;
assign o = i1 | i2;
endmodule
XOR Gate
module xorgate (i1, i2, o);
input i1, i2;
output o;
assign o = i1 ^ i2;
endmodule
(a)
(b)
(c)
(d)
Figure-1. (a) NOT, (b) AND, (c) OR, (d)
XOR.
With Verilog HDL, it is important to note
that there is a standard way of coding to adhere
to the conventions that are accepted by many.
V. ANALYSIS AND CONCLUSION
When making a module, first, module
must be declared followed by the module name.
The module name then must include in its
arguments the variables used in the module.
VI. REFERENCE
Verilog. n.d.Wikipedia. Retrieved on
November 22, 2016.
https://en.m.wikipedia.org/wiki/Verilog
What is Verilog?.n.d.http://www.verilog.com
Intel Quartus Prime Design Software
Overview. Retrieved from
https://www.altera.com/products/designsoftware/fpga-design/quartusprime/overview.html.