C64x+ CPU Cycle Accurate Simulator

From Texas Instruments Embedded Processors Wiki

Jump to: navigation, search
Translate this page to   

Contents

C64x+ CPU Cycle Accurate Simulator

This simulator is a C64x+ CPU only simulator and it's also cycle accurate simulator. This is generic C64x+ simulator & comes with a predefined configuration/memory map; Mainly used in algorithm development where the development is CPU centric.

Components Model

Components modeled in C64x+ CPU Cycle Accurate Simulator

Note: Cache is not simulate in this simulator

Timer Model

The C6000™ DSP device has 32-bit general-purpose timers that can be used to: Time events, Count events, Generate pulses, Interrupt the CPU and Send synchronization events to the DMA.

Timer Memory Map

Interrupt connection for Timer models


Simulator Configurable Options

C64x+ CPU Cycle Accurate Simulator can be configured to match other C64x+ device by configuring the timer. Follow the step to configure Timer model to different memory map & interrupt connection.

Simulator Configurable Options in CCSv4

C64x setup1.jpg

C64x setup2.jpg

C64x setup3.jpg

Simulator Configurable Options in CCSv3.3

Simulator is configured via simulator configuration file in CCSv3.3. Please follow the step given below.

Timer Model configuration
Ex: 
   CONNECT1 C64xplus_mem_map, TIMER0_mif, 0x01C21400, 0x01C217FF, -0x01C21400;
   CONNECT2 C64xplus_mem_map, TIMER1_mif, 0x01C21800, 0x01C21BFF, -0x01C21800;

   Note: Last 3 hex values represent the start address, end address & offset.
Ex: 
   CONNECT1 C64xplus_mem_map, TIMER0_mif, start_address, end_address, -start_address;

Ex:
   CONNECT23 C64xplus.INT4, TIMER0_cpu_int_12;
   CONNECT24 C64xplus.INT5, TIMER0_cpu_int_34;

Ex: 
   CONNECT23 C64xplus.INT10, TIMER0_cpu_int_12;
   CONNECT24 C64xplus.INT12, TIMER0_cpu_int_34; 

   Note: C64x+ CPU Cycle Accurate simulator support interrupt 4-15 only.

Runtime Memory Limit

Simulator support 64MB as memory limit for application, beyond that it gives an error. To increase the runtime memory limit add the following line in simulator configuration file inside Module C64xplus;

MODULE C64xplus;

      MEM_USAGE_LIMIT 100; // Supposing you want to change to 100 MB
      ....

END C64xplus;

Running Application

All BIOS application will run on simulator after selecting the appropriate devices which intern configure the timer memory map & interrupt configurations.

Note: In CCSv3.3 while running BIOS application check whether the simulator timer memory map & interrupt configuration matches the intended device.

Leave a Comment
Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox