160 likes | 345 Views
Enabling Power Aware Emulation in Big CPU Project . Adriana Wolffberg Vinay Vaddepalli , Osama Neiroukh. Agenda. Introduction Power Aware Emulation Foundations Power Aware Emulation Challenges Pioneering work Summary. Background.
E N D
Enabling Power Aware Emulation in Big CPU Project Adriana Wolffberg Vinay Vaddepalli , Osama Neiroukh
Agenda • Introduction • Power Aware Emulation Foundations • Power Aware Emulation Challenges • Pioneering work • Summary
Background • Number of power planes per chip constantly increasing due to aggressive power goals • Power-aware simulation is already part of main validation methodology • Emulation is becoming key technology in Pre-Si verification • Long Tests involving many power on/off states are verified only in emulation
Power Aware Emulation Basics • Emulation tool is extended with Power Aware capabilities • Based on joint specification and prototyping • Emulator takes as input the power architecture of the design from UPF (Unified Power Format - IEEE standard) • No RTL or UPF special changes for Emulation compared with Simulation UPF RTL Power Aware Emulator Power Aware Simulator
Power Aware Simulation • Power aware simulation mimics circuit behavior for power up/down events • When block is powered off • Internals and outputs corrupted to “X” • When block powered on • Start simulation as if @ time zero VCC1 OFF All internals and outputs corrupted to X X X X Regular Simulation Regular Simulation Corrupt to X X X VCC4 ON VCC2 ON VCC3 OFF
Power Aware Emulation Foundations • No X’s in emulation, the emulation engine randomizes powered down domains according to: • Internal state elements are randomized at the time of switching off • Dynamic randomization of outputs of power domains • Emulator uses additional circuits to randomize logic OFF VCC1 Random outputs and states ? ? ? Regular Emulation Regular Emulation Random outputs and states ? ? ON ON VCC2 VCC4 OFF VCC3
Randomization Robustness - example Domain A Domain B • Power Domain A is turned on ahead of Power Domain B and needs to propagate reset on to Domain B • Clock Clk gets shut off before Domain B is turned on while reset remains asserted • Receiver flop D is turned on after Clk was shut off so it remains stuck at X • Note that Rst is synchronous • This bug cannot be found without power supply modeling. In regular emulation, the reset would be observed by D and the flop would reset Din Dout D Rst Clk Can we “catch” this bug with chosen approach of randomization?
Randomization Robustness - options • Different approaches, what is the impact on capacity/performance? • Randomization of state elements • Currently: first cycle after a domain switches off • Option: Randomization at given intervals during power off • Randomization of interface of power domains: • Currently: only outputs of power-down domains • Option: also the inputs of power-down domains • A test can be run multiple times with different seeds : • Invert all values at switch off instead of randomizing them • Force all state elements to 0 or force all of them to 1.
Constant Propagation • Emulation propagates constant as far as possible for optimization • Proposal: stop constant propagation across power boundaries • Open question: Is there capacity or performance penalty when disabling constant propagation? Domain A Domain B RANDOM 0
Multiply instantiated hierarchies • Instances of same module can be in different power domains • Simple example: SUB1 and SUB2 are instances of same module . • Emulation must factor this in carefully, especially when some hierarchies are power-managed and others are always-on. TOP - ON RANDOM SUB1 – Power OFF SUB2 - Power ON
Mini Testcases Flow RTL UPF • We developed a test plan covering all known challenges • For each item in the testplan a simple test case was written • Work with Emulator developers to build confidence before starting on big CPU model Simulation build and run Emulation build Simulation dump Emulation model Merged Emulation dump seed inferX Emulation vcd dump Emulation vcd dump Emulation dump
Summary • Power Aware Emulation is highly required in big CPU project • We took the heavy-lifting of specifying, documenting and productizing power-aware emulation from scratch • Many challenges were found, part are unique to emulation and can be addressed by multiple approaches • Currently deploying Power Aware Emulation in big CPU model