Microprocessor ยท Unit 7 ยท 9 hrs
Advanced Microprocessors
Exam-focused notes for Advanced Microprocessors (Microprocessor, CSC167): what the TU syllabus asks and how it has actually been tested, with 19 solved past questions from this unit.
Advanced Microprocessors in short
This chapter follows the microprocessor family beyond the 8086, into the memory-managed and protected-mode designs of the 80286 and 80386, covering their register sets, privilege and protection mechanisms, and the paging technique used to manage physical memory in a multitasking system.
What this unit covers
- 8086: logical block diagram and segments
- 80286: Architecture, Registers, (Real/Protected mode)
- Privilege levels
- descriptor cache
- Memory access in GDT and LDT
- multitasking
- addressing modes
- flag register
- 80386: Architecture, Register organization, Memory access in protected mode
- Paging
8086
2081 ยท 5 marks
Explain about memory segment and segment register in 8086 microprocessor. [5]
2075 ยท 5 marks
Explain how pipelining is achieved in 8086 microprocessor. [5]
80386
2081 ยท 5 marks
Explain Register Organization in 80386 microprocessor. [5]
Show solved answerHide answer
Register Organization in 80386 Microprocessor
Register Organization of 80386 Microprocessor
The Intel 80386 is a 32-bit microprocessor. Its registers are organized into the following groups:
1. General Purpose Registers (32-bit)
These registers are used for arithmetic, logical, and data transfer operations.
| Register | Full Name | Description |
|---|---|---|
| EAX | Extended Accumulator | Used for arithmetic and I/O operations |
| EBX | Extended Base Register | Used as base pointer for memory addressing |
| ECX | Extended Count Register | Used as loop counter |
| EDX | Extended Data Register | Used in I/O and multiply/divide operations |
| ESI | Extended Source Index | Source pointer in string operations |
| EDI | Extended Destination Index | Destination pointer in string operations |
| EBP | Extended Base Pointer | Points to base of stack frame |
| ESP | Extended Stack Pointer | Points to top of the stack |
- Each 32-bit register can also be accessed as a 16-bit register (AX, BX, CX, DX, SP, BP, SI, DI).
- AX, BX, CX, DX can further be split into 8-bit high and low bytes (AH/AL, BH/BL, CH/CL, DH/DL).
2. Segment Registers (16-bit)
The 80386 uses segmented memory model. It has 6 segment registers:
| Register | Name | Purpose |
|---|---|---|
| CS | Code Segment | Holds address of code segment |
| DS | Data Segment | Holds address of data segment |
| SS | Stack Segment | Holds address of stack segment |
| ES | Extra Segment | Extra data segment |
| FS | F Segment | Additional data segment |
| GS | G Segment | Additional data segment |
3. Control Registers
| Register | Purpose |
|---|---|
| EIP (32-bit) | Extended Instruction Pointer - holds address of next instruction to execute |
| EFLAGS (32-bit) | Extended Flags Register - holds status, control, and system flags |
Important flags in EFLAGS:
- CF - Carry Flag
- ZF - Zero Flag
- SF - Sign Flag
- OF - Overflow Flag
- DF - Direction Flag (for string operations)
- IF - Interrupt Enable Flag
4. System Registers
These are used for memory management and protection in protected mode:
| Register | Name | Purpose |
|---|---|---|
| CR0 - CR3 | Control Registers | Control operating mode and paging |
| GDTR | Global Descriptor Table Register | Points to global descriptor table |
| LDTR | Local Descriptor Table Register | Points to local descriptor table |
| IDTR | Interrupt Descriptor Table Register | Points to interrupt descriptor table |
| TR | Task Register | Points to current task state segment |
Summary Diagram
80386 Registers
โโโ General Purpose (EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP) -- 32-bit
โโโ Segment Registers (CS, DS, SS, ES, FS, GS) -- 16-bit
โโโ Control Registers (EIP, EFLAGS) -- 32-bit
โโโ System Registers (CR0-CR3, GDTR, LDTR, IDTR, TR)
Key Feature
The 80386 supports backward compatibility - programs written for 8086/80286 can run on 80386 because the lower 16-bit portions of the registers (AX, BX, etc.) are preserved within the 32-bit extended registers (EAX, EBX, etc.).
2080 ยท 10 marks
Draw a well-labeled block diagram of 8036 microprocessor. Explain its Register organization.[10]
2080 ยท 5 marks
What are various functional units of 80386 microprocessor? Explain function of each unit. [5]
Show solved answerHide answer
Functional Units of 80386 Microprocessor
Introduction
The 80386 is a 32-bit microprocessor. To achieve high performance through parallelism, it is divided into several independent functional units that can operate simultaneously.
Functional Units of 80386
The 80386 microprocessor is internally divided into six functional units:
1. Bus Interface Unit (BIU)
- Manages all data and address transfers on the external buses (data bus, address bus, control bus).
- Handles communication between the processor and external memory or I/O devices.
- Generates the 32-bit physical address for memory access.
- Controls bus cycles and arbitration.
2. Code Prefetch Unit (CPU / Prefetch Unit)
- Fetches instruction bytes from memory in advance (before they are needed).
- Stores prefetched bytes in a 16-byte prefetch queue.
- Keeps the instruction pipeline filled so the processor does not have to wait for instruction fetch.
- Works in parallel with instruction decoding and execution.
3. Instruction Decode Unit
- Takes instruction bytes from the prefetch queue and decodes them into internal micro-operations.
- Maintains a queue of 3 decoded instructions ready for execution.
- Decoding in advance reduces delays during execution.
4. Execution Unit (EU)
- Carries out the actual arithmetic and logical operations on data.
- Contains the 32-bit ALU (Arithmetic Logic Unit) for integer operations.
- Accesses the general-purpose registers (EAX, EBX, ECX, EDX, ESI, EDI, ESP, EBP).
- Executes decoded instructions passed from the Instruction Decode Unit.
5. Segmentation Unit
- Handles memory segmentation by converting logical addresses (segment:offset) into linear addresses.
- Uses segment registers (CS, DS, SS, ES, FS, GS) and descriptor tables.
- Provides memory protection by checking segment limits and access rights.
6. Paging Unit
- Converts linear addresses (produced by the Segmentation Unit) into physical addresses.
- Implements demand paging using page tables and a Translation Lookaside Buffer (TLB) for fast address translation.
- Supports a 4 KB page size.
- Only active when paging is enabled (PG bit set in CR0).
Summary Table
| Unit | Primary Function |
|---|---|
| Bus Interface Unit | External bus communication and address generation |
| Code Prefetch Unit | Advance fetching of instructions into queue |
| Instruction Decode Unit | Decoding instructions into micro-operations |
| Execution Unit | ALU operations and register access |
| Segmentation Unit | Logical to linear address translation |
| Paging Unit | Linear to physical address translation |
Conclusion
These six units work in parallel (pipelined), so while one instruction is being executed, the next is being decoded and the one after that is being prefetched. This parallel operation significantly increases the throughput and performance of the 80386 processor.
2079 ยท 10 marks
Explain the architecture of 80386 with required figure. Highlight on its register organization.[10]
2078 ยท 5 marks
Explain Register Organization in 80386 microprocessor. [5]
Show solved answerHide answer
Register Organization in 80386 Microprocessor
Register Organization of 80386
The 80386 is a 32-bit microprocessor. Its registers are organized into the following groups:
1. General Purpose Registers (32-bit)
These are 32-bit registers used for arithmetic, logical, and data transfer operations. They are extensions of the 16-bit 8086 registers.
| Register | Full Name | Description |
|---|---|---|
| EAX | Extended Accumulator | Used for arithmetic and I/O operations |
| EBX | Extended Base Register | Used as base address in memory addressing |
| ECX | Extended Count Register | Used as loop counter |
| EDX | Extended Data Register | Used in I/O and multiply/divide operations |
| ESI | Extended Source Index | Source pointer for string operations |
| EDI | Extended Destination Index | Destination pointer for string operations |
| EBP | Extended Base Pointer | Points to base of stack frame |
| ESP | Extended Stack Pointer | Points to top of stack |
- The lower 16 bits of each register can be accessed as AX, BX, CX, DX, SI, DI, BP, SP.
- The lower 8 bits of AX, BX, CX, DX can be accessed as AL, AH, BL, BH, CL, CH, DL, DH.
2. Segment Registers (16-bit)
The 80386 has six 16-bit segment registers used to hold segment selectors in protected mode or segment base addresses in real mode.
| Register | Name | Purpose |
|---|---|---|
| CS | Code Segment | Points to the segment containing program code |
| DS | Data Segment | Points to the default data segment |
| SS | Stack Segment | Points to the stack segment |
| ES | Extra Segment | Extra segment for string operations |
| FS | F Segment | Additional general-purpose segment |
| GS | G Segment | Additional general-purpose segment |
3. Instruction Pointer (EIP) - 32-bit
- EIP holds the offset address of the next instruction to be executed within the code segment.
- It is automatically incremented after each instruction fetch.
- Equivalent to the Program Counter (PC) in other architectures.
4. Flag Register (EFLAGS) - 32-bit
The EFLAGS register contains status, control, and system flags.
Key flags include:
| Flag | Symbol | Description |
|---|---|---|
| Carry Flag | CF | Set on unsigned overflow |
| Zero Flag | ZF | Set when result is zero |
| Sign Flag | SF | Set when result is negative |
| Overflow Flag | OF | Set on signed overflow |
| Parity Flag | PF | Set when result has even parity |
| Trap Flag | TF | Enables single-step mode |
| Interrupt Flag | IF | Enables/disables maskable interrupts |
| Direction Flag | DF | Controls direction of string operations |
5. Control Registers (CR0 - CR3)
Used to control operating modes and memory management:
| Register | Purpose |
|---|---|
| CR0 | Contains system control flags (e.g., PE bit to enable protected mode) |
| CR1 | Reserved |
| CR2 | Holds the linear address that caused a page fault |
| CR3 | Holds the base address of the page directory (used in paging) |
6. System Address Registers
| Register | Size | Purpose |
|---|---|---|
| GDTR | 48-bit | Global Descriptor Table Register |
| IDTR | 48-bit | Interrupt Descriptor Table Register |
| LDTR | 16-bit | Local Descriptor Table Register |
| TR | 16-bit | Task Register |
7. Debug and Test Registers
- DR0 - DR7: Debug registers used to set hardware breakpoints.
- TR6, TR7: Test registers used for testing the Translation Lookaside Buffer (TLB).
Summary Diagram
80386 Registers
โโโ General Purpose: EAX, EBX, ECX, EDX, ESI, EDI, EBP, ESP (32-bit)
โโโ Segment Registers: CS, DS, SS, ES, FS, GS (16-bit)
โโโ Instruction Pointer: EIP (32-bit)
โโโ Flags Register: EFLAGS (32-bit)
โโโ Control Registers: CR0 - CR3
โโโ System Address Registers: GDTR, IDTR, LDTR, TR
โโโ Debug Registers: DR0 - DR7
The rich register organization of the 80386 allows it to support real mode, protected mode, and virtual 8086 mode, making it a powerful and flexible 32-bit processor.
descriptor cache
2081 ยท 5 marks
What is Descriptor? Explain the use of segment descriptor in physical address conversion in 80286 microprocessor. [5]
Show solved answerHide answer
Descriptor and Segment Descriptor in 80286 Physical Address Conversion
What is a Descriptor?
A descriptor is a data structure (8 bytes long) stored in memory that contains all the necessary information about a memory segment. In the protected mode of the 80286 microprocessor, segment registers do not hold the physical base address directly; instead, they hold a selector that points to a descriptor in a descriptor table.
A segment descriptor contains three key fields:
| Field | Description |
|---|---|
| Base Address | 24-bit starting physical address of the segment |
| Segment Limit | Size/length of the segment (defines the maximum offset allowed) |
| Access Rights Byte | Privilege level, type (code/data/stack), and protection attributes |
Memory Access in Protected Mode (80286)
In the 80286 protected mode, physical address conversion involves the following steps:
Step 1: Selector in Segment Register
When a memory reference is made, the segment register (CS, DS, SS, ES) contains a selector (not a direct address). The selector specifies:
- The index into the descriptor table
- The table indicator (GDT or LDT)
- The requested privilege level (RPL)
Step 2: Accessing the Descriptor Table
The selector is used to locate the appropriate segment descriptor from either:
- GDT (Global Descriptor Table) -- pointed to by the GDTR register
- LDT (Local Descriptor Table) -- pointed to by the LDTR register
The CPU reads the 8-byte descriptor from the table.
Step 3: Protection Check
The CPU checks the access rights byte in the descriptor to verify:
- The segment is present in memory
- The current privilege level is allowed to access the segment
- The offset does not exceed the segment limit
If any check fails, a protection fault is generated.
Step 4: Physical Address Calculation
Once the descriptor is validated, the 24-bit base address is extracted from the descriptor. The physical address is calculated as:
Physical Address = Segment Base Address (from descriptor) + Effective Offset
Note: The effective address (offset) is added with the segment base address to calculate the linear address. This linear address is used directly as the physical address if the paging unit is disabled.
Diagram of Address Conversion
Segment Register
+------------------+
| Selector |
+------------------+
|
| Index into Descriptor Table
v
+---------------------------+
| Descriptor Table (GDT/LDT)|
| [Base Addr | Limit | AR] |
+---------------------------+
|
| 24-bit Base Address
v
Base Address
+
Effective Offset (from instruction)
=
Linear Address = Physical Address (paging disabled)
Summary
| Step | Action |
|---|---|
| 1 | Segment register holds a selector |
| 2 | Selector indexes into GDT or LDT to fetch descriptor |
| 3 | Access rights and limit are checked for protection |
| 4 | Base address from descriptor + offset = Physical Address |
Thus, the segment descriptor plays a central role in the 80286 protected mode by providing the base address, enforcing memory limits, and implementing privilege-based memory protection during physical address conversion.
2080 ยท 5 marks
What is Descriptor? Explain the use of descriptor in logical to physical address conversion in 80286 microprocessor. [5]
addressing modes
2076 ยท 5 marks
Explain the addressing modes of 8086 microprocessor with examples. [5]
multitasking
2079 ยท 5 marks
Explain the concept of multitasking in 80286. [5]
80286
2078 ยท 10 marks
Draw block diagram of 80286 microprocessor and explain its main four functional sub-units. Differentiate between Real Address Mode and Protected Virtual address mode.[10]
2076 ยท 10 marks
Draw block diagram of 80286 and explain its functional units.[10]
Show solved answerHide answer
Block Diagram of 80286 and Its Functional Units
Introduction
The Intel 80286 is a 16-bit microprocessor that is an enhanced version of the 8086. It operates at higher speeds and supports protected mode in addition to real mode. The 80286 is internally divided into four independent functional units that operate in a pipeline fashion to increase throughput and processing speed.
Block Diagram of 80286
csc167-80286-block
+------------------+ +------------------+
| | | |
| ADDRESS UNIT | | BUS UNIT |
| (AU) |<----->| (BU) |
| | | |
| - Segment Regs | | - Prefetch Queue |
| - Descriptor | | - Bus Control |
| Cache Regs | | - Address Driver |
| - Adder | | - Pipeline/Bus |
| - Limit Checker | | Size Control |
| - Protection | | |
| Check Unit | +------------------+
+------------------+ |
| |
| Internal Bus |
+------------------------+
| |
+------------------+ +------------------+
| | | |
| INSTRUCTION UNIT | | EXECUTION UNIT |
| (IU) |<----->| (EU) |
| | | |
| - 6-Byte Prefetch| | - ALU |
| Queue | | - Register File |
| - Instruction | | - Barrel Shifter |
| Decoder | | - Multiply/Divide|
| - Decoded | | Unit |
| Instruction | | - Control Logic |
| Queue (3 deep) | | |
+------------------+ +------------------+
| |
+-------- Internal Bus --+
|
+------------------+
| SYSTEM BUSES |
| Address Bus (24) |
| Data Bus (16) |
| Control Bus |
+------------------+
Functional Units of 80286
The 80286 is divided into four major functional units:
1. Bus Unit (BU)
The Bus Unit is responsible for all external bus operations. It acts as the interface between the processor and the external system buses.
Key components and functions:
| Component | Function |
|---|---|
| Prefetch Queue | Holds up to 6 bytes of prefetched instructions |
| Bus Control Logic | Manages read/write cycles on external buses |
| Address Driver | Drives the 24-bit physical address bus |
| Pipeline/Bus Size Control | Controls bus cycle pipelining |
- It fetches instruction bytes from memory and places them into the prefetch queue.
- It manages the 24-bit address bus, allowing access to up to 16 MB of physical memory.
- It handles the 16-bit data bus for data transfers.
- It operates independently of the Execution Unit, so it can prefetch instructions while the EU is executing previous instructions.
2. Instruction Unit (IU)
The Instruction Unit is responsible for decoding instructions fetched by the Bus Unit.
Key components and functions:
| Component | Function |
|---|---|
| 6-Byte Prefetch Queue | Receives raw instruction bytes from BU |
| Instruction Predecoder | Determines instruction boundaries and length |
| Instruction Decoder | Fully decodes instructions into micro-operations |
| 3-Deep Decoded Instruction Queue | Stores up to 3 decoded instructions ready for EU |
- It takes instruction bytes from the BU's prefetch queue and decodes them.
- Decoded instructions are placed in a 3-stage decoded instruction queue, which feeds the Execution Unit.
- This pipelining ensures the EU always has a ready decoded instruction, reducing idle time.
3. Execution Unit (EU)
The Execution Unit is responsible for actually executing the decoded instructions provided by the Instruction Unit.
Key components and functions:
| Component | Function |
|---|---|
| ALU (Arithmetic Logic Unit) | Performs arithmetic and logical operations |
| Register File | Contains general-purpose registers (AX, BX, CX, DX, SP, BP, SI, DI) |
| Barrel Shifter | Performs fast multi-bit shift and rotate operations |
| Multiply/Divide Unit | Dedicated hardware for multiplication and division |
| Control Logic | Sequences and controls execution of micro-operations |
- The EU fetches decoded instructions from the IU's decoded queue.
- It performs all arithmetic, logical, shift, and data manipulation operations.
- It communicates with the Address Unit to generate effective addresses for memory operands.
- It uses a dedicated ALU bus for fast internal data transfers.
4. Address Unit (AU)
The Address Unit is responsible for memory address calculation and protection checking in both real mode and protected mode.
Key components and functions:
| Component | Function |
|---|---|
| Segment Registers | Hold segment selectors (CS, DS, SS, ES) |
| Descriptor Cache Registers | Cache segment descriptor information (base, limit, attributes) |
| Adder | Computes physical addresses by adding segment base and offset |
| Limit Checker | Verifies that memory accesses are within segment limits |
| Protection Check Unit | Enforces privilege levels and access rights in protected mode |
| Attribute PLA | Decodes segment attributes and access rights |
- In real mode, it adds the segment base (shifted left by 4) to the offset to produce a 20-bit physical address.
- In protected mode, it uses the descriptor cache to obtain the 24-bit base address and adds the offset, producing a full 24-bit physical address.
- It performs protection checks to prevent unauthorized memory access, which is a key feature of the 80286 over the 8086.
Pipeline Operation of the Four Units
The four units operate in a pipelined, overlapping fashion rather than strictly one after another, and this overlap is what gives the 80286 its speed advantage over the 8086:
- The Bus Unit prefetches the next instruction bytes from memory while the current instruction is still being decoded or executed.
- The Instruction Unit decodes the prefetched bytes into micro-operations and keeps up to three decoded instructions queued, so the Execution Unit is rarely left waiting for work.
- The Execution Unit executes one decoded instruction while the Instruction Unit decodes the next one and the Bus Unit fetches the one after that.
- The Address Unit works alongside the Execution Unit, computing and protection-checking physical addresses for memory operands as soon as they are needed, so address translation does not stall the pipeline.
Because fetching, decoding, address computation, and execution proceed concurrently in different units instead of sequentially, the 80286 achieves a higher instruction throughput than the non-pipelined 8086.
2075 ยท 10 marks
Draw block diagram of 80286 and explain its functional units.[10]
Show solved answerHide answer
Block Diagram of 80286 and Its Functional Units
Introduction
The Intel 80286 is a 16-bit microprocessor that is an enhanced version of the 8086. It operates at higher speeds and supports protected mode operation with memory management and protection features. The 80286 is internally divided into four independent functional units that operate in a pipelined fashion to improve overall performance.
Block Diagram of 80286
+------------------+ +----------------------+
| ADDRESS UNIT | | BUS UNIT (BU) |
| (AU) | | |
| - Segment Regs |<------>| - Address Drivers |
| - Adder | | - Prefetch Queue |
| - Descriptor | | (6-byte) |
| Registers | | - Bus Control Logic |
| - Limit Checker | | |
+--------+---------+ +----------+-----------+
| |
| INTERNAL BUS |
+--------+---------+ +----------+-----------+
| INSTRUCTION UNIT | | EXECUTION UNIT (EU) |
| (IU) | | |
| - Instruction |<------>| - ALU |
| Prefetch Queue | | - Register File |
| - Instruction | | - Barrel Shifter |
| Decoder | | - Multiply/Divide |
| - Decoded Queue | | - Control Logic |
+------------------+ +----------------------+
| |
+----------+-----------------+
|
INTERNAL CONTROL BUS
|
+--------------+--------------+
| |
EXTERNAL ADDRESS BUS (24-bit) EXTERNAL DATA BUS (16-bit)
Functional Units of 80286
The 80286 is divided into four major functional units:
1. Bus Unit (BU)
The Bus Unit is responsible for all external bus operations. It acts as the interface between the processor and the external memory or I/O devices.
Functions:
- Fetches instruction bytes from external memory and places them into the 6-byte prefetch queue
- Manages the 24-bit external address bus and 16-bit external data bus
- Controls bus timing, bus cycles, and bus arbitration
- Performs read and write operations to memory and I/O ports
- Contains address drivers and bus control logic
The BU operates independently, so while the Execution Unit is processing one instruction, the BU can simultaneously fetch the next instruction (pipelining).
2. Instruction Unit (IU)
The Instruction Unit is responsible for decoding instructions fetched by the Bus Unit.
Functions:
- Receives raw instruction bytes from the BU's prefetch queue
- Decodes the instructions into a form that the Execution Unit can process
- Maintains a decoded instruction queue (holds up to 3 decoded instructions)
- Uses a predecode stage to identify instruction boundaries and lengths
- Feeds decoded instructions to the Execution Unit in order
The IU works ahead of the EU, so the EU rarely has to wait for instruction decoding, improving throughput.
3. Execution Unit (EU)
The Execution Unit is responsible for actually executing the decoded instructions.
Functions:
- Contains the 16-bit ALU (Arithmetic and Logic Unit) for arithmetic and logical operations
- Contains the Register File (AX, BX, CX, DX, SP, BP, SI, DI, IP, FLAGS)
- Contains a Barrel Shifter for fast shift and rotate operations
- Contains Multiply/Divide hardware for multiplication and division operations
- Receives decoded instructions from the IU and executes them
- Sends memory addresses to the Address Unit when memory access is needed
- Manages the control logic for instruction execution flow
4. Address Unit (AU)
The Address Unit is responsible for memory address calculation and memory protection in both real mode and protected mode.
Functions:
- Contains Segment Registers and Descriptor Registers for memory segmentation
- Performs address calculation using a dedicated adder (segment base + offset)
- Checks limit and attribute of memory segments using the Limit Checker and Attribute PLA (Programmable Logic Array)
- Enforces memory protection in protected mode by verifying access rights
- Generates the final 24-bit physical address sent to the Bus Unit
- Supports a descriptor cache to hold recently used segment descriptors for fast access
The AU is the key unit that enables the 80286's protected mode, allowing it to address up to 16 MB of physical memory and 1 GB of virtual memory.
Summary Table
| Unit | Main Role | Key Components |
|---|---|---|
| Bus Unit (BU) | External bus interface, instruction fetch | Prefetch queue, address drivers, bus control |
| Instruction Unit (IU) | Instruction decoding | Decoder, decoded instruction queue |
| Execution Unit (EU) | Instruction execution | ALU, register file, barrel shifter, multiply/divide |
| Address Unit (AU) | Address generation and memory protection | Segment regs, adder, limit checker, descriptor cache |
Conclusion
The 80286 achieves high performance through pipelining of its four functional units. While the EU executes one instruction, the IU decodes the next, and the BU fetches the one after that, all simultaneously. The AU provides the memory management and protection features that distinguish the 80286 from its predecessor, the 8086.
2080.1 ยท 10 marks
Draw a block diagram of 80286 microprocessor and explain.[10]
Memory access in GDT and LDT
2076 ยท 5 marks
Write short notes on: a. Harvard architecture b. GDT and LDT [5]
Paging
2080.1 ยท 5 marks
What is paging? Explain the concept of memory access in protected mode. [5]
Make Unit 7 stick
Practice CSC167 with flashcards & quizzes