Verilog Tutorials Flashcards

1
Q

HDL

A

hardware description language - used to describe the structure and operation of digital systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

where are semicolons needed

A

end of module initiation and after code statements
not needed after endmodule or after if / begin / end

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how to declare input variables

A

input variable;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

how to declare output variables

A

output variable;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

data types

A

wire:
wire wire1, wire2;
registers:
reg [3:0] clk;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

how do verilog constants work?

A

<# of bits> ‘ <base></base> <number></number>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

structural verilog coding

A

describe logic using built-in primitives
- interconnection of simple components
- purely structural
- executed concurrently
- one output
- uses words for logic operators

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Dataflow verilog coding

A
  • specify output signals in terms of input signals
  • specifies transfer of data between registers
  • some structural info available
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

behavioral verilog coding

A
  • algorithmically specify design behavior
  • procedural code similar to C
  • little structural detail
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

structural verilog coding example

A

module AND(out, i0, i1)
input io, i1;
output out;
and (out, io, i1)
endmodule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

true or false: wires must be initialized in first line of module

A

false

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

data flow description eg

A

uses assign statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

does data flow description use continuous assignment?

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

logical operators description

A

always returns 1-bit result, interpreted as false when all bits are zero, true when atleast one bit is one

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Use ______ operators for boolean expressions and use ______ operators for signal manipulation

A

logical, bitwise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what does the bitwise not operator do

A

take’s ones complement

17
Q

can relational or equality operators return a multibit result

A

no, only one bit, true or false