EECS 31L midterm 2 prep

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:31 AM on 5/15/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

31 Terms

1
New cards

module / endmodule

Defines a hardware block; top-level unit in Verilog

2
New cards

input / output / inout

Port direction declarations

3
New cards

wire

Continuous-value net driven by assign or module output; cannot store state

4
New cards

reg

Variable that holds its value until reassigned; used inside always/initial blocks

5
New cards

parameter

Compile-time constant that can be overridden at instantiation

6
New cards

localparam

Compile-time constant that cannot be overridden externally

7
New cards

genvar

Elaboration-time loop variable; NOT a signal; cannot be used in simulation

8
New cards

generate / endgenerate

Wraps generate constructs (for loops, if, case)

9
New cards

always

Procedural block that re-executes whenever sensitivity list changes

10
New cards

initial

Procedural block that executes once at time 0; used in testbenches

11
New cards

assign

Continuous assignment; drives a wire; always active

12
New cards

case / endcase

Multi-way branch; matches exact value (4-state: 0, 1, X, Z)

13
New cards

casex

Case with don't-care matching on X and Z

14
New cards

casez

Case with don't-care matching on Z only

15
New cards

begin / end

Groups multiple statements into a block

16
New cards

Positional mapping

Port connections by order; matches declaration sequence in module definition

17
New cards

Named mapping

Port connections by name using .port_name(signal) dot notation

18
New cards

Elaboration

Pre-simulation phase where generate loops are unrolled and hierarchy resolved

19
New cards

Simulation

Runtime phase where signals have values and time advances

20
New cards

Opcode

Binary control signal that selects which ALU operation to perform

21
New cards

ALU

Arithmetic Logic Unit; combinational circuit that performs arithmetic/logic ops

22
New cards

Multiplexer (Mux)

Selects one of many inputs based on a control signal

23
New cards

Register File

Array of registers with read and write ports; used to store operands

24
New cards

Read port

Port that outputs a register value given an address

25
New cards

Write port

Port that writes a value to a register at a given address

26
New cards

Address bus

Set of wires used to select a register; width = log2(number of registers)

27
New cards

Data bus

Set of wires that carry data to/from registers; width = word size

28
New cards

Word size

Bit-width of each register in the file

29
New cards

Zero flag (Z)

Output flag; 1 when ALU result equals 0

30
New cards

Negative flag (N)

Output flag; equals MSB of ALU result

31
New cards

Parity

XOR of all bits; 1 if odd number of 1s, 0 if even