Search Header Logo

Fundamentals of Verilog

Authored by THEN SATHYA

Other

University

Used 1+ times

Fundamentals of Verilog
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the basic structure of a Verilog module?

module (input , output ); // assign statements // endmodule

module (output , input ); // endmodule

module (input , output ); // internal declarations // assign statements // always blocks endmodule

module (input ); // internal declarations // always blocks // endmodule

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What data types are commonly used in Verilog?

boolean

char

wire, reg, integer, real, time, string, array

float

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Explain the difference between nets and regs in Verilog.

Nets are for temporary values, and regs are for permanent values.

Regs can have multiple drivers, whereas nets can only have one driver.

Nets are used for storage, while regs are for connections.

Nets are for connections (multiple drivers), and regs are for storage (single driver).

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you declare a wire in Verilog?

wire: myWire;

reg myWire;

int myWire;

wire myWire;

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the syntax for a basic AND gate in Verilog?

assign output = input1 & input2;

assign output = input1 + input2;

output = input1 | input2;

output <= input1 & input2;

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you write a comment in Verilog?

Use '#' for comments

Use '/*' for single-line comments

Use '//' for single-line comments and '/* ... */' for multi-line comments.

Use '//' for multi-line comments

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the 'always' block in Verilog?

The 'always' block is used for defining module parameters.

The 'always' block is only for combinational logic.

The 'always' block is used to declare variables in Verilog.

The 'always' block is used to describe behavior that executes in response to signal changes.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?