Intel® System Debugger User Guide

ID 648476
Date 06/13/2024
Confidential
Document Table of Contents

Configure and Enable Trace

Add the following North Peak configuration snippet after run-command-file of the startup script for the Simics(R) simulator.

Note, that script customization might be needed, as NPK location depends of Simics(R) image.

Script uses $system.mb.soc.north_​peak to access NPK. On different image path might be different. Plese refer to specific image documentation for NPK path.

For example, for GRR image, use the following path: $system.mb.soc0.c_​die0.npk instead of: $system.mb.soc.north_​peak.

Configuration snippet:

# Configure NPK Traces

script-branch {

     while TRUE {

         local $system = $system

         wait-for-hap X86_Processor_Reset

         echo "Configure NPK after reset"

         # Enable Low Power Path

         $system.mb.soc.north_peak->bar_npk_LPP_CTL=0x13

         # Enable all BIOS traces

         $system.mb.soc.north_peak->bar_npk_SCRPD2 = 0xffffffff

         # Set "Debugger In Use" for FW, enable Intel(R) Direct Connect Interface (Intel(R) DCI)

         $system.mb.soc.north_peak->bar_npk_SCRPD0 = 0x01004000

         # Enable all master 256+, output Intel DCI

         $system.mb.soc.north_peak->bar_npk_GSWDEST = 9

         # Enable all master 0-256, output Intel DCI

         foreach $i in (range 32) {

             $system.mb.soc.north_peak->bar_npk_SWDEST[$i] = 0x99999999

         }

     }

 }


 # Enable Low Power Path

 $system.mb.soc.north_peak->bar_npk_LPP_CTL=0x13


 # Enable all BIOS traces

 $system.mb.soc.north_peak->bar_npk_SCRPD2 = 0xffffffff


 # Set "Debugger In Use" for FW, enable Intel DCI

 $system.mb.soc.north_peak->bar_npk_SCRPD0 = 0x01004000


 # Enable all master 256+, output Intel DCI

 $system.mb.soc.north_peak->bar_npk_GSWDEST = 9


 # Enable all master 0-256, output Intel DCI

 foreach $i in (range 32) {

     $system.mb.soc.north_peak->bar_npk_SWDEST[$i] = 0x99999999

 }