verilog_sv_uvm interview questions
verilog_sv_uvm interview questions
There are three basic logic gates, two universal gates, and a few other combinational logic gates in digital
electronics.
Basic Gates:
AND gate.
OR gate.
NOT gate.
Universal Gates:
NAND gate
NOR gate
Other Gates:
XOR gate
XNOR gate
The main difference between latch and FF is that latches are level sensitive while FF is edgesensitive.
They both require the use of clock signal and are used in sequential logic. For a latch, the output tracks
the input when the clock signal is high, so as long as the clock is logic1, the output can change if the
input also changes.FF on the other hand, will store the input only when there is a rising/falling edge of
the clock.Latch is sensitive to glitches on enable pin, whereas flip-flop is immune to glitches. Latches take
fewer gates (also less power) to implement than flip-flops. Latches are faster than flip-flops
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
Verilog
Write a Verilog code to swap content of two registers with and without a temporary register?
6.
Q. Write a verilog code for asynchrounus reset.
Verilog: 2:1 MUX using conditional operator
module mux_2_1(
input sel,
output y);
endmodule
………………………………………………….
Q. Verilog code for Rising Edge D Flip-Flop with Asynchronous Reset High Level:
// fpga4student.com
// Verilog code for Rising edge D flip flop with Asynchronous Reset high
module RisingEdge_DFlipFlop_AsyncResetHigh(D,clk,async_reset,Q);
begin
if(async_reset==1'b1)
Q <= 1'b0;
else
Q <= D;
end
endmodule
……………………………………………………………………………………………………………………………
System verilog