Monday, 26 July 2021

Youtube Channel : "Explore Electronics"

A Youtube Channel that covers most of Verilog Subject, VLSI Design, Basic Electronics and Other Electronics related Subjects.

Explore Electronics : Click here

Verilog Videos : Click Here

VLSI Design : Click Here

Basic Electronics : Click Here

Network Security & Cryptography : Click Here

Friday, 17 April 2020

Tasks and Functions

Tasks: for Video Click here

A designer is frequently required to implement the same functionality at many places in a behavioral design.
The commonly used parts should be abstracted into routines and the routines must be invoked instead of repeating the code.
Most programming languages provide procedures or subroutines to accomplish this.
Verilog provides tasks and functions to break up large behavioral designs into smaller pieces.
Tasks and functions allow the designer to abstract Verilog code that is used at many places in the design.

Saturday, 11 April 2020

Friday, 3 April 2020

Traffic Signal Controller

Study Material [PPT]


The following specifications must be considered:
• The traffic signal for the main highway gets highest priority because cars are continuously present on the main highway. Thus, the main highway signal remains green by default.
• Occasionally, cars from the country road arrive at the traffic signal. The traffic signal for the country road must turn green only long enough to let the cars on the country road go.

As soon as there are no cars on the country road, the country road traffic signal turns yellow and then red and the traffic signal on the main highway turns green again.

• There is a sensor to detect cars waiting on the country road. The sensor sends a signal X as input to the controller. X = 1 if there are cars on the country road; otherwise, X= 0.
• There are delays on transitions from S1 to S2, from S2 to S3, and from S4 to S0. The delays must be controllable.


Find Verilog Code in the PPT.

Traffic Signal Controller

Tuesday, 13 November 2018

Behavioral Description study materials


• The significance of structured procedures always and initial in behavioral modeling.
• Define blocking and nonblocking procedural assignments.
• Understand delay-based timing control mechanism in behavioral modeling. Use regular delays, intra-assignment delays, and zero delays.
• Describe event-based timing control mechanism in behavioral modeling. Use regular event control, named event control, and event OR control.
• Use level-sensitive timing control mechanism in behavioral modeling.
• Explain conditional statements using if and else.
• Describe multiway branching, using case, casex, and casez statements.
• Understand looping statements such as while, for, repeat, and forever.
• Define sequential and parallel blocks.
• Understand naming of blocks and disabling of named blocks.
• Use behavioral modeling statements in practical examples.

Monday, 22 October 2018

Data flow description Study materials


Learning Objectives
• Describe the continuous assignment (assign) statement, restrictions on the assign statement, and the implicit continuous assignment statement.
• Assignment delay, implicit assignment delay, and net declaration delay for continuous assignment statements.
• Define expressions, operators, and operands.
• List operator types for all possible operations.
arithmetic, logical, relational, equality, bitwise, reduction, shift, concatenation, and conditional.
• Use dataflow constructs to model practical digital circuits in Verilog.

Wednesday, 10 October 2018

Gate Level Description Study Materials

Identify logic gate primitives provided in Verilog.
• Understand instantiation of gates, gate symbols, and truth tables for and/or and buf/not type gates.
• Understand how to construct a Verilog description from the logic diagram of the circuit.
• Describe rise, fall, and turn-off delays in the gate-level design.
• Explain min, max, and typical delays in the gate-level design.
Modules and ports Study Materials

Identify the components of a Verilog module definition, such as module names, port lists, parameters, variable declarations, dataflow statements, behavioral statements, instantiation of other modules, and tasks or functions.
• Understand how to define the port list for a module and declare it in Verilog.
• Describe the port connection rules in a module instantiation.
• Understand how to connect ports to external signals, by ordered list, and by name.
• Explain hierarchical name referencing of Verilog identifiers.

Saturday, 22 September 2018

Verilog program for 8:3 Encoder with Priority

module priorityencoder(en,a,y);
input en;
input [7:0]a;
output [2:0]y;
reg [2:0]y;

always@ (en,a)
begin
if (en==1'b1)
y=3'bZZZ;

else if (a[7]==1) y=3'b111;
else if (a[6]==1) y=3'b110;
else if (a[5]==1) y=3'b101;
else if (a[4]==1) y=3'b100;
else if (a[3]==1) y=3'b011;
else if (a[2]==1) y=3'b010;
else if (a[1]==1) y=3'b001;
else if (a[0]==1) y=3'b000;
else
y=3'bZZZ;
end
endmodule

INPUTS
OUTPUTS
en
a(7)
a(6)
a(5)
a(4)
a(3)
a(2)
a(1)
a(0)
b(2)
b(1)
b(0)
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
-
0
0
1
0
0
0
0
0
0
1
-
-
0
1
0
0
0
0
0
0
1
-
-
-
0
1
1
0
0
0
0
1
-
-
-
-
1
0
0
0
0
0
1
-
-
-
-
-
1
0
1
0
0
1
-
-
-
-
-
-
1
1
0
0
1
-
-
-
-
-
-
-
1
1
1
0
0
0
0
0
0
0
0
0
Z
Z
Z
1
-
-
-
-
-
-
-
-
Z
Z
Z

Verilog HDL Question Paper June- July 2017-18

Question Paper & Scheme June- July 2017-18