CPU & Memory Clock Configuration

From Texas Instruments Wiki
Jump to: navigation, search

How to configure CPU & Memory Clock in Simulator?

It's possible to configure CPU & Memory Clock in device cycle accurate simulator. Configuring the clocks would give better cycle accuracy when compared to the defaults settings. Clock configuration is applicable for Device Cycle Accurate Simulators only

For C64xx & C64x+ Device Simulators in CCSv4

For C64xx & C64x+ simulator the CPU & EMIF clock are configure in setup time. Follow the steps to configure the clocks. (Note: Steps given are for CCSv4)

  • Open CCSv4 & create a target configuration file.
  • Select any of the C6455 Device Simulator in the basic setup tab.
  • Go to advanced tab anc click on the CPU.
  • Configurable options will show up on right side. Change the CPU Clock & EMIF Clock accordingly.

Clock configure.jpg

  • Clock options available are based on frequency supported by the device.
  • EMIF clock is set to default value supported on the simulator. To change select the other option which will show the frequency text box & bus width configurations.

EMIF custom timing.jpg


NOTE: EMIF timing register in the simulator have to be configure for better cycle accuracy.

For C64x+ Device Simulators in CCSv3.3

For C64x+ devices the CPU & Memory clocks are configure via simulator configuration file. Follow the steps to configure the clocks. (Eg. Step are shown using C6455 Device Cycle Accurate Simulator)

  • Identify the simulator configuration file & open the file in an editor.
  • Search for SECTION SYSTEM_CLOCK; inside the section change value of cpu_clk_freq to change CPU clock & vbus_clk_freq to change the BUS clock.
SECTION SYSTEM_CLOCK;     
	cpu_clk_freq  750;			// CPU clock frequency in MHz	 
        vbus_clk_freq 250;			// VBUS clock frequency in MHz	 
END SYSTEM_CLOCK;

//Note: Only integers are allowed as clocks values.
  • Search for MEM_CLOCK_EMIFA or MEM_CLOCK_EMIFB or MEM_CLOCK; to change the memory clock on that device. Change the value for mem_clk_freq inside the section to configure the clock.
//! Note:
//! =========
//! 1. EMIFB is configured to DDR2
//! 2. To configure the DDR2 clock frequency for EMIFB change the mem_clk freq value.
//!

SECTION MEM_CLOCK_EMIFB;
	mem_clk_freq  250;			// Memory clock frequency in MHz            
END MEM_CLOCK_EMIFB;

Note: MEM_CLOCK_EMIFA or MEM_CLOCK_EMIFB will be present only when their are two EMIF present in the device otherwise check for MEM_CLOCK
Note: Check the comment to see whether the memory is configure to SDRAM or DDR2 or DDR3

  • Save the configuration & bring-up the simulator

Supported Simulator Device

Clock configuration is supported in CCSv4 for the following simulator configurations.

  • TCI6482 Device Cycle Accurate Simulator
  • C6454 Device Cycle Accurate Simulator
  • C6455 Device Cycle Accurate Simulator
  • DM6437 Device Cycle Accurate Simulator
  • DM6446 Device Cycle Accurate Simulator
  • DM6443 Device Cycle Accurate Simulator
  • C6421 Device Cycle Accurate Simulator
  • C6424 Device Cycle Accurate Simulator
  • TCI6487 Device Cycle Accurate Simulator
  • TCI6488 Device Cycle Accurate Simulator
  • C6474 Device Cycle Accurate Simulator
  • TCI6486 Device Cycle Accurate Simulator
  • TCI6484 Device Cycle Accurate Simulator
  • DA830 Device Cycle Accurate Simulator
  • C6745 Device Cycle Accurate Simulator
  • C6747 Device Cycle Accurate Simulator
  • C6416 Device Cycle Accurate Simulator
  • C6416 Device Cycle Accurate Simulator
  • C6415 Device Cycle Accurate Simulator
  • C6414 Device Cycle Accurate Simulator
  • DM642 Device Cycle Accurate Simulator
  • C6713 Device Cycle Accurate Simulator