SlideShare a Scribd company logo
5
Most read
6
Most read
7
Most read
CPU Verification
Ramdas M
Introduction
● Verification engineer with 20+ years of experience
○ AMD, Intel, CPU start ups (Montalvo, Applied Micro)
● www.verificationexcellence.in
Agenda
CPUs
CPU vs IP / SOC Verification
Architecture Verification
Microarchitecture Verification
Verification Milestones and Metrics for completeness
CPU SOCs
CPU vs Cores
Single Core vs Multi core CPUs
CPUs
Simple Core pipeline Multi Core CPU
Architecture vs Microarchitecture - ?
Architecture Microarchitecture
Describes high level attributes/features of a
system
Details about implementation of
design/CPU
Hardware-Software interface Units/sub-units, Interfaces, State machines
and other data structures etc
Instruction Set Architecture (ISA) for CPUs
- Instructions
- Registers
- Memory Model
- Interrupts and Exceptions
- Programming Model
Pipelining,
In-order vs Out-of-order execution
Parallel execution units
Branch prediction
Caches and Coherency implementation
Memory and interconnects
x86, ARM-v8, RISC-V, MIPS, Power, Instruction Decode – Microcode
IP - SOC – CPU SOC - Verification -?
● IP - Intellectual Property
- A logical block / unit with defined interfaces
- e.g. an Ethernet MAC, a PCIE Bridge, USB controller, DRAM controller
- Use standard verification methodologies – Simulation, constrained random etc.
- Verification focus on implementation
● SOC – A System on a Chip
- A collection of logical blocks/IP s with interconnects
- May be one or more CPUs / controllers
- Verification focus on system level scenarios, interconnect and interaction between IPs
● CPU - Consider as a sub-system inside an SOC
- ISA compliance
Architectural Verification
● Implementation meets Architecture definition – ISA compliance
- Instruction, Modes, Memory management, Interrupts/Exceptions
● Random Instruction Sequences / Generators
-Developed primarily in a high-level language – C , Python with
- inline assembly - used for better control sometimes
● Verified for correctness with an Architectural Simulator
● Test suites developed in house or available from third party for compliance
- Large collection of tests, debugs are always challenging.
● Done at a CPU / Core level Test bench
Micro-architecture Verification
● Focus on Implementation of CPU core
● Block level , Cluster/Sub-system Level Verification
- IF, ID, LS, EX,
- Single Core Cluster
● Constrained Random Verification – SV, UVM
● Functional and Code Coverage
● Formal Verification techniques
Other Verification Focus - Areas
● Power Management Flows
-Power states and Power savings - Sleep , Hibernate
● DFT/DFX Verification
- How to test after manufacturing?
● Performance Verification
- IPC, Single Threaded vs Multi threaded
- Benchmarks – SpecInt, SpecFP, LMbench
- Memory latency and bandwidth
● System Level Verification or Emulation
- Long running Stress tests
- Software readiness before Silicon including OS boot
Regressions
● Collection of Tests that is run frequently and efficiently
-Important as help to make sure progress in upward direction
-Add new tests to regression as being developed
- Makes sure a bug fix does not break a verified feature
- Distribute tests across multiple machines/computers
- Complex process with large test suites
● Architecture Verification
- Huge test suite – Several thousands of tests
● Microarchitecture Verification
- Each block might have a handy suite of constrained random tests
Debugs
● Detecting Failures is first step to start debug
○ Assertions, checkers/scoreboards, hangs, timeouts etc
○ Failures classified based on signature (type of failure)
● Root cause a failure
○ Understanding failure and locating the cause
○ Failure could be in Verification or Design
○ Understanding design behavior is key to debug and track back
○ Might need to isolate failure before locating cause
○ Debug Tools - Monitors, log files, wave form viewers
Milestones, Metrics and Checklist
● CPU /CPU-SOC development takes from a year to few years
● Development divided as milestones with metrics that monitors progress
● Checklists and sign off criteria used to gain high confidence before tape out
Milestones
• Rev0.0 –
-Design Documentation, Initial RTL structure,
-Test bench infrastructure, Build and Regression flows
• Rev0.25
- Basic Features verified. Test bench components and stimulus infrastructure.
- Initial Test plans Reviewed, Random regressions for verified features
• Rev0.50 – Rev0.75
- More features coded and verified. More random regressions and bug hunting
- Bug rates and pass rates gets monitored
Milestones
• Rev1.0
- All features coded and stimulus in place. Functional coverage monitor coded
- Regressions and bug hunting. Coverage collection and analysis started
• Freeze
- Pass rates and functional coverage at 100% with known exceptions. All
known/critical bugs fixed.
- Incoming bug rates very low with no risks.
• Tapeout
Metrics
Why Metrics ?
-Design Verification rarely completes on schedule.
-There is always more to verify in less time.
-Be paranoid – There is always a bug in there hidden.
Metrics for Completion
● Test plan completion
● Test plan reviews and Actions
● Tests, Stimulus , Checkers, Assertions, Functional Coverage coding completion
● Simulation based Metrics
● Regression pass rates,
● Bug Trends Incoming bug rates, Open bugs, historical trends
● Functional Coverage
● Code Coverage
● Code (RTL/DV) Stability
??

More Related Content

PPTX
System verilog assertions
PPTX
System verilog coverage
PDF
UVM Methodology Tutorial
PPTX
SOC Verification using SystemVerilog
ODP
PCIe DL_layer_3.0.1 (1)
DOCX
systemverilog-interview-questions.docx
PPTX
AMBA AHB 5
PPSX
System on chip buses
System verilog assertions
System verilog coverage
UVM Methodology Tutorial
SOC Verification using SystemVerilog
PCIe DL_layer_3.0.1 (1)
systemverilog-interview-questions.docx
AMBA AHB 5
System on chip buses

What's hot (20)

PPTX
ASIC design verification
PDF
Verification challenges and methodologies - SoC and ASICs
PDF
System verilog important
ODP
axi protocol
PDF
System verilog verification building blocks
PDF
Functional verification techniques EW16 session
PDF
UVM TUTORIAL;
ODP
APB protocol v1.0
PDF
2019 2 testing and verification of vlsi design_verification
PPTX
Advances in Verification - Workshop at BMS College of Engineering
PPT
system verilog
PDF
Pcie basic
PPTX
SystemVerilog based OVM and UVM Verification Methodologies
PPTX
dual-port RAM (DPRAM)
PPTX
PDF
Session 8,9 PCI Express
PDF
Challenges in Using UVM at SoC Level
PPTX
AMBA Ahb 2.0
PPTX
Ambha axi
PDF
UVM ARCHITECTURE FOR VERIFICATION
ASIC design verification
Verification challenges and methodologies - SoC and ASICs
System verilog important
axi protocol
System verilog verification building blocks
Functional verification techniques EW16 session
UVM TUTORIAL;
APB protocol v1.0
2019 2 testing and verification of vlsi design_verification
Advances in Verification - Workshop at BMS College of Engineering
system verilog
Pcie basic
SystemVerilog based OVM and UVM Verification Methodologies
dual-port RAM (DPRAM)
Session 8,9 PCI Express
Challenges in Using UVM at SoC Level
AMBA Ahb 2.0
Ambha axi
UVM ARCHITECTURE FOR VERIFICATION
Ad

Similar to CPU Verification (20)

PPTX
Early Software Development through Palladium Emulation
PDF
The Cortex-A15 Verification Story
PDF
Getting started with RISC-V verification what's next after compliance testing
PDF
Fpga Verification Methodology and case studies - Semisrael Expo2014
PDF
The Art of Applied Engineering - An Overview
PPTX
ADG_Rocket Engine Propulsion Test Solution Overview.pptx
PPTX
Daniel dauwe ece 561 Trial 3
PPTX
Daniel dauwe ece 561 Benchmarking Results
PPTX
Daniel dauwe ece 561 Benchmarking Results Trial 2
PDF
Tutorial getting started with RISC-V verification
PDF
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
PPTX
Andreas Grabner - Performance as Code, Let's Make It a Standard
PPT
TEST EXECUTION.ppt
PPTX
System Architecture Exploration Training Class
PPTX
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
PPT
wayne123456892u349823u48327u498327489327498327489327849798.ppt
PPTX
Continuous Validation at Scale
PDF
Intel Atom Processor Pre-Silicon Verification Experience
PPTX
ADG EOIR Focal Plane Array Sensor Systems Test Overview (1).pptx
Early Software Development through Palladium Emulation
The Cortex-A15 Verification Story
Getting started with RISC-V verification what's next after compliance testing
Fpga Verification Methodology and case studies - Semisrael Expo2014
The Art of Applied Engineering - An Overview
ADG_Rocket Engine Propulsion Test Solution Overview.pptx
Daniel dauwe ece 561 Trial 3
Daniel dauwe ece 561 Benchmarking Results
Daniel dauwe ece 561 Benchmarking Results Trial 2
Tutorial getting started with RISC-V verification
Quality in a Square. K8s-native Quality Assurance of Microservices with Testkube
Andreas Grabner - Performance as Code, Let's Make It a Standard
TEST EXECUTION.ppt
System Architecture Exploration Training Class
Quadratisch. Praktisch. Gut. K8s-native Quality Assurance mit Testkube @ Java...
wayne123456892u349823u48327u498327489327498327489327849798.ppt
Continuous Validation at Scale
Intel Atom Processor Pre-Silicon Verification Experience
ADG EOIR Focal Plane Array Sensor Systems Test Overview (1).pptx
Ad

Recently uploaded (20)

PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
UNIT 4 Total Quality Management .pptx
PPTX
web development for engineering and engineering
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PDF
Structs to JSON How Go Powers REST APIs.pdf
PPTX
additive manufacturing of ss316l using mig welding
PDF
Digital Logic Computer Design lecture notes
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
DOCX
573137875-Attendance-Management-System-original
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PPTX
Welding lecture in detail for understanding
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Sustainable Sites - Green Building Construction
PDF
Well-logging-methods_new................
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
Foundation to blockchain - A guide to Blockchain Tech
UNIT 4 Total Quality Management .pptx
web development for engineering and engineering
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Arduino robotics embedded978-1-4302-3184-4.pdf
Structs to JSON How Go Powers REST APIs.pdf
additive manufacturing of ss316l using mig welding
Digital Logic Computer Design lecture notes
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Model Code of Practice - Construction Work - 21102022 .pdf
573137875-Attendance-Management-System-original
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mechanical Engineering MATERIALS Selection
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
Welding lecture in detail for understanding
CYBER-CRIMES AND SECURITY A guide to understanding
Sustainable Sites - Green Building Construction
Well-logging-methods_new................

CPU Verification

  • 2. Introduction ● Verification engineer with 20+ years of experience ○ AMD, Intel, CPU start ups (Montalvo, Applied Micro) ● www.verificationexcellence.in
  • 3. Agenda CPUs CPU vs IP / SOC Verification Architecture Verification Microarchitecture Verification Verification Milestones and Metrics for completeness
  • 4. CPU SOCs CPU vs Cores Single Core vs Multi core CPUs
  • 5. CPUs Simple Core pipeline Multi Core CPU
  • 6. Architecture vs Microarchitecture - ? Architecture Microarchitecture Describes high level attributes/features of a system Details about implementation of design/CPU Hardware-Software interface Units/sub-units, Interfaces, State machines and other data structures etc Instruction Set Architecture (ISA) for CPUs - Instructions - Registers - Memory Model - Interrupts and Exceptions - Programming Model Pipelining, In-order vs Out-of-order execution Parallel execution units Branch prediction Caches and Coherency implementation Memory and interconnects x86, ARM-v8, RISC-V, MIPS, Power, Instruction Decode – Microcode
  • 7. IP - SOC – CPU SOC - Verification -? ● IP - Intellectual Property - A logical block / unit with defined interfaces - e.g. an Ethernet MAC, a PCIE Bridge, USB controller, DRAM controller - Use standard verification methodologies – Simulation, constrained random etc. - Verification focus on implementation ● SOC – A System on a Chip - A collection of logical blocks/IP s with interconnects - May be one or more CPUs / controllers - Verification focus on system level scenarios, interconnect and interaction between IPs ● CPU - Consider as a sub-system inside an SOC - ISA compliance
  • 8. Architectural Verification ● Implementation meets Architecture definition – ISA compliance - Instruction, Modes, Memory management, Interrupts/Exceptions ● Random Instruction Sequences / Generators -Developed primarily in a high-level language – C , Python with - inline assembly - used for better control sometimes ● Verified for correctness with an Architectural Simulator ● Test suites developed in house or available from third party for compliance - Large collection of tests, debugs are always challenging. ● Done at a CPU / Core level Test bench
  • 9. Micro-architecture Verification ● Focus on Implementation of CPU core ● Block level , Cluster/Sub-system Level Verification - IF, ID, LS, EX, - Single Core Cluster ● Constrained Random Verification – SV, UVM ● Functional and Code Coverage ● Formal Verification techniques
  • 10. Other Verification Focus - Areas ● Power Management Flows -Power states and Power savings - Sleep , Hibernate ● DFT/DFX Verification - How to test after manufacturing? ● Performance Verification - IPC, Single Threaded vs Multi threaded - Benchmarks – SpecInt, SpecFP, LMbench - Memory latency and bandwidth ● System Level Verification or Emulation - Long running Stress tests - Software readiness before Silicon including OS boot
  • 11. Regressions ● Collection of Tests that is run frequently and efficiently -Important as help to make sure progress in upward direction -Add new tests to regression as being developed - Makes sure a bug fix does not break a verified feature - Distribute tests across multiple machines/computers - Complex process with large test suites ● Architecture Verification - Huge test suite – Several thousands of tests ● Microarchitecture Verification - Each block might have a handy suite of constrained random tests
  • 12. Debugs ● Detecting Failures is first step to start debug ○ Assertions, checkers/scoreboards, hangs, timeouts etc ○ Failures classified based on signature (type of failure) ● Root cause a failure ○ Understanding failure and locating the cause ○ Failure could be in Verification or Design ○ Understanding design behavior is key to debug and track back ○ Might need to isolate failure before locating cause ○ Debug Tools - Monitors, log files, wave form viewers
  • 13. Milestones, Metrics and Checklist ● CPU /CPU-SOC development takes from a year to few years ● Development divided as milestones with metrics that monitors progress ● Checklists and sign off criteria used to gain high confidence before tape out
  • 14. Milestones • Rev0.0 – -Design Documentation, Initial RTL structure, -Test bench infrastructure, Build and Regression flows • Rev0.25 - Basic Features verified. Test bench components and stimulus infrastructure. - Initial Test plans Reviewed, Random regressions for verified features • Rev0.50 – Rev0.75 - More features coded and verified. More random regressions and bug hunting - Bug rates and pass rates gets monitored
  • 15. Milestones • Rev1.0 - All features coded and stimulus in place. Functional coverage monitor coded - Regressions and bug hunting. Coverage collection and analysis started • Freeze - Pass rates and functional coverage at 100% with known exceptions. All known/critical bugs fixed. - Incoming bug rates very low with no risks. • Tapeout
  • 16. Metrics Why Metrics ? -Design Verification rarely completes on schedule. -There is always more to verify in less time. -Be paranoid – There is always a bug in there hidden.
  • 17. Metrics for Completion ● Test plan completion ● Test plan reviews and Actions ● Tests, Stimulus , Checkers, Assertions, Functional Coverage coding completion ● Simulation based Metrics ● Regression pass rates, ● Bug Trends Incoming bug rates, Open bugs, historical trends ● Functional Coverage ● Code Coverage ● Code (RTL/DV) Stability
  • 18. ??