《Off-Chip_Peripheral_Emulators.pdf》由会员分享,可在线阅读,更多相关《Off-Chip_Peripheral_Emulators.pdf(52页珍藏版)》请在三个皮匠报告上搜索。
1、#EMBEDDEDOSSUMMITOff-Chip Peripheral EmulatorsAaron E.Massey,Gaaronemasseyaaronmassey_googleGoal:Scalably Verify Peripheral Drivers What is an emulator(peripheral emulator)?When and why should we emulate?Creating an emulator Using emulators Q&AAgenda What is an emulator(peripheral emulator)?When and
2、 why should we emulate?Creating an emulator Using emulators Q&AAgendaEmulators-Faking Peripherals on a BusEmulators-Faking Peripherals on a BusEmulators-Faking Peripherals on a BusEmulators-Faking Peripherals on a BusEmulators-Faking Peripherals on a BusHardwareEmulators-Faking Peripherals on a BusE
3、mulators-Faking Peripherals on a BusEmulators-Faking Peripherals on a BusEmulators-Faking Peripherals on a Bus What is an emulator(peripheral emulator)?When and why should we emulate?Creating an emulator Using emulators Q&AAgendaWhy should we emulate?Good/BadEmulated TestingHardware TestingHardware-
4、lessRequires hardwareScalable&stable-Zephyr CISlower&more non-deterministicDebug on developer machineDebug on test deviceEasy to recreate test scenarioDifficult to recreate test scenarioEmulatedAuthenticControl+velocity over accuracyAccuracy over control+velocityTesting is better with both!When shou
5、ld we emulate?When should we emulate?When should we emulate?When should we emulate?When should we emulate?When should we emulate?When should we emulate?When should we emulate?Test Driven Development!What is an emulator(peripheral emulator)?When and why should we emulate?Creating an emulator Using em
6、ulators Q&AAgendaWhen and why should we emulate?Emulators typically consist of a single C source.Similar to defining a device driverParameters specific to emulators bus_api-bus messaging(required)backend_api-test scenario setup(optional but useful)Creating an emulatorEMUL_DT_DEFINE(node_id,init_fn,d