SPRUIR8B april   2020  – july 2023

 

  1.   1
  2.   CLB Tool
  3.   Trademarks
  4. 1Introduction
    1. 1.1 CLB Tool Outline
    2. 1.2 Overview of the CLB Configuration Process
  5. 2Getting Started
    1. 2.1 CLB Related Collateral
    2. 2.2 Introduction
    3. 2.3 Installation
      1. 2.3.1 Installation to Compile SystemC
      2. 2.3.2 Install the Simulation Viewer
  6. 3Using the CLB Tool
    1. 3.1 Import the Empty CLB Project
    2. 3.2 Updating Variable Paths
    3. 3.3 Configuring a CLB Tile
    4. 3.4 Creating the CLB Diagram
    5. 3.5 Using the Simulator
      1. 3.5.1 The Statics Panel
      2. 3.5.2 Creating the Input Stimulus
      3. 3.5.3 Running the Simulation
      4. 3.5.4 Trace Signal Descriptions
  7. 4Examples
    1. 4.1 Foundational Examples
      1. 4.1.1  CLB Empty Project
      2. 4.1.2  Example 3 – PWM Generation
      3. 4.1.3  Example 7 – State Machine
      4. 4.1.4  Example 13 – PUSH-PULL Interface
      5. 4.1.5  Example 14 – Multi-Tile
      6. 4.1.6  Example 15 – Tile to Tile Delay
      7. 4.1.7  Example 16 - Glue Logic
      8. 4.1.8  Exampe 18 - AOC
      9. 4.1.9  Example 19 - AOC Release Control
      10. 4.1.10 Example 20 - CLB XBARs
    2. 4.2 Getting Started Examples
      1. 4.2.1  Example 1 – Combinatorial Logic
      2. 4.2.2  Example 2 – GPIO Input Filter
      3. 4.2.3  Example 4 – PWM Protection
      4. 4.2.4  Example 5 – Event Window
      5. 4.2.5  Example 6 – Signal Generation and Check
      6. 4.2.6  Example 8 – External AND Gate
      7. 4.2.7  Example 9 – Timer
      8. 4.2.8  Example 10 – Timer With Two States
      9. 4.2.9  Example 11 – Interrupt Tag
      10. 4.2.10 Example 12 – Output Intersect
      11. 4.2.11 Example 17 – One-Shot PWM Generation
      12. 4.2.12 Example 21 - Clock Prescaler and NMI
      13. 4.2.13 Example 22 - Serializer
      14. 4.2.14 Example 23 - LFSR
      15. 4.2.15 Example 24 - Lock Output Mask
      16. 4.2.16 Example 25 - Input Pipeline Mode
      17. 4.2.17 Example 26 - Clocking Pipeline Mode
    3. 4.3 Expert Examples
      1. 4.3.1 Example 27 - SPI Data Export
      2. 4.3.2 Example 28 - SPI Data Export DMA
      3. 4.3.3 Example 29 - Timestamp
      4. 4.3.4 Example 30 - Cyclic Redundancy Check
      5. 4.3.5 CLB TDM Serial Port
      6. 4.3.6 CLB LED Driver
      7. 4.3.7 FPGA/CPLD to C2000 Examples
  8. 5Enabling CLB Tool in Existing DriverLib Projects
  9. 6Frequently Asked Questions (FAQs)
  10. 7Revision History

Installation to Compile SystemC

To allow the simulation source file clb_sim.cpp to compile for Windows:

  1. Download “tdm-gcc” version 5.1.0-2 from SourceForge.
  2. Open the downloaded file.
  3. Uncheck the "Check for updated files on the TDM-GCC server" option.
  4. Select “Create” from the setup wizard.
    GUID-FAC2925D-D37F-44CC-9A89-622CBA1A8F0D-low.png Figure 2-1 TDM Compiler Installation Wizard
  5. If the wizard shows this information regarding license changes, select "Next".
    GUID-EA5A377D-103E-4C73-ADAC-961058A714EA-low.png Figure 2-2 TDM License Change
  6. Select the installation directory as C:\TDM-GCC-64 and click “Next”.
    GUID-2DB82DD1-A435-4003-AC8A-854A6C7C1A07-low.gif Figure 2-3 TDM Compiler Path
  7. Verify that the proper components are selected before clicking "Install".
    GUID-552298F3-265D-4D80-8D03-C32FC1C6E006-low.png Figure 2-4 TDM Components
  8. Once the installation completes, select "Next" and "Finish".

For Mac or Linux, the SystemC library needs to be installed, but the G++ compiler does not. Verify that the G++ compiler is up-to-date before proceeding. To install SystemC for Mac or Linux:

  1. Open the terminal.
  2. Run sudo apt-get install build-essential.
  3. Install SystemC 2.3.3 from Accelera and extract it by running tar -xvf systemc-2.3.3.tar.gz in the terminal.
  4. Copy this extracted folder into the "/usr/bin" directory by doing sudo cp -r systemc-2.3.3 /usr/bin. Go to the directory created by the tar command (not in "/usr/bin") and create a directory called "objdir".
    GUID-5C6A37A6-AEDB-4C92-A93B-5A6DE4627ED8-low.png Figure 2-5 SystemC Directory Creation
  5. Run sudo ../configure --prefix=/usr/bin/systemc-2.3.3/.
    GUID-A80F6A62-4C40-4E8C-846A-0DDC95D66AE1-low.png Figure 2-6 SystemC Configuration Output
  6. Run sudo make.
    GUID-B7E9DDFC-CDF6-42AD-8093-8F8DD780F2BE-low.png Figure 2-7 Make Output
  7. Run sudo make install.
    GUID-C8705E38-0CD4-4ECC-985D-B901DC9E7C65-low.png Figure 2-8 Make Install Output