image/svg+xml
  • Contents
      • Back
      • Digital Basics
      • Verilog
      • Verification
      • SystemVerilog
      • UVM
Most Popular
Verification
  Testbench Evolution
  Constraint Random Verification
  Verification Techniques
  Verification Plan
  Code Coverage

Verilog
  Data Types
  Basic Constructs
  Behavioral Modeling
  Gate Modeling
  Simulation Basics
  Design Examples

SystemVerilog
  Data Types
  Class
  Interface
  Constraints and more!
  Testbench Examples

UVM
  Sequences
  Testbench Components
  TLM Tutorial
  Register Model Tutorial
  Testbench Examples

Digital Fundamentals
  Binary Arithmetic
  Boolean Logic
  Karnaugh Maps
  Combinational Logic
  Sequential Logic




UVM Interview Set 2

  1. What are the different phases in UVM ?

What are the different phases in UVM ?

The main phases in UVM are :

  • build_phase
  • connect_phase
  • end_of_elaboration_phase
  • start_of_simulation_phase
  • run_phase
  • extract_phase
  • check_phase
  • report_phase
  • final_phase

Read more in UVM Phases.

Read more: UVM Interview Set 2

UVM Interview Set 1

  1. What is a UVM RAL model ? Why is it required ?

What is a UVM RAL model ? Why is it required ?

RAL is short for Register Abstraction Layer. It is a set of base classes that can be used to create register models to mimic the register contents in a design. It is much easier to write and read from the design using a register model than sending a bus transaction for every read and write. Also the register model stores the current state of the design in a local copy called as a mirrored value. Read more in Register Layer.

Read more: UVM Interview Set 1

SystemVerilog Interview Set 6

  1. Write a small function to push 10 unique values from 0 to 50 into a queue.

Write a small function to push 10 unique values from 0 to 50 into a queue.


function random();
	bit [7:0] array[$];
	
	for (int i = 0; i  10; i++) begin
		int num;
		std::randomize(num) with { num inside {[0:50]};
									!(num inside {array}; 
								};
		array.push_back(num);								
	end
endfunction

Read more: SystemVerilog Interview Set 6

Verilog Conditional Statements

In Verilog, conditional statements are used to control the flow of execution based on certain conditions. There are several types of conditional statements in Verilog listed below.

Conditional Operator


<variable> = <condition> ? <expression_1> : <expression_2>;

The conditional operator allows you to assign a value to a variable based on a condition. If the condition is true, expression_1 is assigned to the variable. Otherwise, expression_2 is assigned.

Read more: Verilog Conditional Statements

SystemVerilog Static Cast

Static cast is a SystemVerilog feature that allows converting an expression from one data type to another at compile time.

Syntax

'(value or variable or expression)

Properties

Here are some of the properties of static cast in SystemVerilog:

Read more: SystemVerilog Static Cast

  1. SystemVerilog DPI
  2. SystemVerilog Interview Set 5
  3. SystemVerilog Interview Set 4
  4. SystemVerilog Interview Set 3
  5. SystemVerilog Interview Set 2

Page 3 of 63

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
Interview Questions
  Verilog Interview Set 1
  Verilog Interview Set 2
  Verilog Interview Set 3
  Verilog Interview Set 4
  Verilog Interview Set 5

  SystemVerilog Interview Set 1
  SystemVerilog Interview Set 2
  SystemVerilog Interview Set 3
  SystemVerilog Interview Set 4
  SystemVerilog Interview Set 5

  UVM Interview Set 1
  UVM Interview Set 2
  UVM Interview Set 3
  UVM Interview Set 4
Related Topics
  Digital Fundamentals
  Verilog Tutorial

  Verification
  SystemVerilog Tutorial
  UVM Tutorial
  • Verilog Testbench
  • Verilog Coding Style Effect
  • Verilog Conditional Statements
  • Verilog Interview Set 10
  • Synchronous FIFO
  • SystemVerilog Interview Set 10
  • SystemVerilog Interview Set 9
  • SystemVerilog Interview Set 8
  • SystemVerilog Interview Set 7
  • SystemVerilog Interview Set 6
  • UVM Singleton Object
  • UVM Component [uvm_component]
  • UVM Object [uvm_object]
  • UVM Root [uvm_root]
  • UVM Interview Set 4
© 2015 - 2023 ChipVerify
Terms and Conditions | DMCA.com Protection Status