SOC Laboratory Course in NCTU – Trial Run Report
Speaker: Kun-Bin Lee Directed by Prof. Chein-Wei Jen
Department of Electronics Engineering National Chiao Tung University {kblee, cwjen}@twins.ee.nctu.edu.tw
- Jul. 15, 2003
SOC Laboratory Course in NCTU Trial Run Report Speaker: Kun-Bin - - PowerPoint PPT Presentation
SOC Laboratory Course in NCTU Trial Run Report Speaker: Kun-Bin Lee Directed by Prof. Chein-Wei Jen Department of Electronics Engineering National Chiao Tung University {kblee, cwjen}@twins.ee.nctu.edu.tw Jul. 15, 2003 Lab Modules of
1
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
2
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
3
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
4
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
Getting Start with ADS Working with AXD Software Quality Measurement ARM Integrator Environment µC/OS-II
Virtual Prototyping Profiling Application Digital IP Authoring RTOS µHAL Driver Rapid Prototyping Embedded SW Authoring
Coding Guideline Coverage-Driven Verification
5
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
6
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
7
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
– Set breakpoints and watchpoints – Locate, examine and change the contents of variables, registers and memory
– Memory requirement of the program – Profiling: Build up a picture of the percentage of time spent in each procedure. – Evaluate software performance prior to implement on hardware
8
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
– Optimize 8x8 inverse discrete cosine transform (IDCT) [1] according to ARM’s architecture. – Deliverables
– Explain the approaches you apply to minimize the code size and enhance the performance of the lotto program according to ARM’s architecture. – Select or modify the algorithms
your program to fit to ARM's architecture. – SIMD operations in ARM core
9
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
AMBA Data AMBA Interface
Virtual Address JTAG and non-AMBA signals
CP15 MMU
ARM Core
EmbeddedICE & JTAG Write Buffer
Physical Address AMBA Address
10
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
11
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
CPU ISS CPU Debugger (GUI) CPU ICE UART Model Intr cntrl Model Parallel I/O Model Timer Model Memory Model Rapid Prototype USB Model Codec Model BLC Model
12
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
ARMulator startup banner : System Output Monitor - RDI Log Default MCCFG = 3
ARMulator ADS1.1 [Build 709] ARM940T, 4kB I-cache, 4kB D-cache, 10.00MHz core clock, (Physical memory, 3.3MHz, 4GB), Little endian, Debug Comms Channel, Mapfile, Timer, Tube, Profiler, Pagetables, IntCtrl, Tracer, Millisecond [3333.33 cycles_per_millisecond], Semihost ARM RDI 1.5.1 -> ASYNC RDI Protocol Converter ADS v1.1 Memory map: 00000000..7fffffff, 32-Bit, wr, wait states: RN=0 WN=0 RS=0 WS=0 RIS=0 WIS=0 ARMulator ADS1.2 [Build 805] ARM940T, 4KB I-cache, 4KB D-cache, 200.00MHz FCLK, (Physical memory, BIU), Little endian, Semihosting, Debug Comms Channel, 66.7MHz, 4GB, Mapfile, Timer, Profiler, Tube, Millisecond [66666.7 cycles_per_millisecond], Pagetables, IntCtrl, Tracer, RDI Code sequences ARM RDI 1.5.1 -> ASYNC RDI Protocol Converter ADS v1.2 [Build number 805].
13
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
– Understand the HW/SW coordination
polling and Timer/Interrupt
– Understand available resource
– Semihosting – Interrupt handler – Architecture of Timer and Interrupter controller
– Introduction to Important functions used in interrupt handler
14
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
15
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
16
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
– A guide to use RTOS and port programs to it
– Basic concepts and capabilities of RTOS
context switch
Semaphore
using Mailbox
– Coding guideline for a program running on the embedded RTOS – Setting up the ARMulator
17
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
– HW/SW Co-verification using Rapid Prototyping
– Basics and work flow for prototyping with ARM Integrator – Target platform: AMBA AHB sub-system
– Overview of examples used in the Steps
– Understand the files for the example designs and FPGA tool – Steps for synthesis with Xilinx Foundation 3.1i
– RGB-to-YUV converting hardware module
– In example 1, explain the differences between the Flash version and the FPGA one. – In example 1, explain how to move data from DRAM to registers in MYIP and how program access these registers. – In example2, draw the interconnect among the functional units and explain the relationships
functional units in AHB sub-system – Compare the differences of polling and interrupt mechanism
18
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
Driver BFM DUT Response BFM Test Program Monitor Monitor
19
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
20
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report
21
Institute of Electronics, National Chiao Tung University SOC Laboratory Course in NCTU – Trial Run Report