Main Content

CLB Logic for Clock Generation

In this task you will learn how to:

  • Update or Modify the CLB Tile configurations.

  • Generate CLB configuration files.

  • Generate CLB BiSS clock generation HTML file.

CLB Tile Configuration

  1. To generate the code for the model, press Ctrl+B or click Build, Deploy & Start. Follow the build process by opening the diagnostic viewer using the link provided at the bottom of the model canvas.

  2. Click to open the project in CCS.

  3. Right click on the project and select Add files.

  4. Locate the bissc.sysconfig in the \tic2000examples folder path of your installed blockset.

  5. Click Ok to Copy file.

  6. Configure the BiSS system configuration file (bissc.syscfg).

    1. Right click on bissc.sysconfig and select properties.

    2. Under Build, select SysConfigand Click Edit Flags.

    3. Update the path to your C2000Ware install as shown, click Apply and Close.

      Note

      Provide the installation path of the C2000ware depending upon where it is installed in your PC.

  7. Double click on bissc.syscfg to view the TILE configurations.

Generate CLB Configuration File

  1. To re-generate the CLB_config.c and CLB_config.h file, First delete the existing clb_config.c as shown below.

  2. Build the project. After successful build, the new CLB_config.c and CLB_config.h are generated as shown below. You can choose to debug from CCS or use these files in MATLAB®.

Generate CLB Configuration in HTML

The CLB tool generates CLB configuration HTML format in CCS. It shows the sub-module inter-connections in diagram form and can be used to verify the design.

  1. Under the project properties, add the following path:

    C:\ti\c2000\C2000Ware_3_02_00_00\utilities\clb_tool\clb_syscfg\

    Note

    Provide the installation path of the C2000ware depending upon where it is installed in your PC.

  2. Enter the following command under the post build option as shown:

    ${NODE_TOOL} "${CLB_SYSCFG_ROOT}/dot_file_libraries/clbDotUtility.js"  "${CLB_SYSCFG_ROOT}" 
    "${BuildDirectory}/syscfg" "${BuildDirectory}/syscfg/clb.dot"

  3. Build the project. After successful build the clb.html is generated.

  4. Double click on the clb.html to view the CLB tile design.