Download - Lab 9 ASIC Logic

Transcript
Page 1: Lab 9  ASIC Logic

6/11/2003 1

Lab 9 ASIC Logic

第八組R91943003 陳方玉R91943007 陳建宏R91943072 柯鴻洋R89921022 吳佑焉

Page 2: Lab 9  ASIC Logic

6/11/2003 2

Outline

Introduction to the ASIC Logic Experiment Steps RGB to YUV Conversion HW Module

Page 3: Lab 9  ASIC Logic

6/11/2003 3

Outline

Introduction to the ASIC Logic Experiment Steps RGB to YUV Conversion HW Module

Page 4: Lab 9  ASIC Logic

6/11/2003 4

Basics for Prototyping with Logic Modules

Page 5: Lab 9  ASIC Logic

6/11/2003 5

Basic Platforms: AHB

Page 6: Lab 9  ASIC Logic

6/11/2003 6

Core Module / Motherboard

memoryand peripherals

PCI

Core modulealias memory

Logic module 0

Logic module 1

Logic module 2

Logic module 3

LM registers

Interrupt

SSRAM

Bus Error response

test_register

0xC0000000

0xD0000000

0xE0000000

0xF0000000

0xC0000000

0xC1000000

0xC2000000

0xC21000000xC2100004

0xCFFFFFFF

Logic Module Registers

Page 7: Lab 9  ASIC Logic

6/11/2003 7

Outline

Introduction to the ASIC Logic Experiment Steps RGB to YUV Conversion HW Module

Page 8: Lab 9  ASIC Logic

6/11/2003 8

Steps for Example 1

(1)Flash the LEDs on the Logic Module from left to right.

(2)The speed of flashing the LEDs from left to right can be set by changing the configuration of the 8-way switch.

(3) Comparison of programming FPGA

FPGA version: programs the FPGA by writing the bit stream image into the FPGA directly. The image will start running right after programming into the FPGA.

Flash version: programs the FPGA by writing the bit stream image into the flash. The image will start after next power up of the development system.

Page 9: Lab 9  ASIC Logic

6/11/2003 9

Setting Clock FrequencyControl Clock Frequency

by 8-Way Switches

Steps of Example 1

Page 10: Lab 9  ASIC Logic

6/11/2003 10

(1)Determine the DRAM size on the Core Module and set up the system controller(2)Make sure the Logic Module is present in the AP expansion position(3)Report module information(4)Set the Logic Module clock frequencies(5)Test SSRAM for word, halfword, and byte accesses(6)Test the custom design device’s single register access Flash the LED(7)Remain in a loop that displays the 8-way switch value of the Logic Modules on its LEDs.

These steps are the same as in experiment 8:

AMBA BUS

Steps of Example 2

Page 11: Lab 9  ASIC Logic

6/11/2003 11

Reminder

Page 12: Lab 9  ASIC Logic

6/11/2003 12

Reminder

Remember to set the third switch on Program FPGA from Image 0

Page 13: Lab 9  ASIC Logic

6/11/2003 13

Experiment Steps:example2

Page 14: Lab 9  ASIC Logic

6/11/2003 14

Outline

Introduction to the ASIC Logic Experiment Steps RGB to YUV Conversion HW Module

Page 15: Lab 9  ASIC Logic

6/11/2003 15

RGB to YUV Conversion

Implement with pure software. Implement with hardware.

Page 16: Lab 9  ASIC Logic

6/11/2003 16

LM_MYIP=0xC2200040

Memory Definition

Page 17: Lab 9  ASIC Logic

6/11/2003 17

RGB to YUV Program

(1)Add MYIP.v into top module.(2)Modify AHBDecoder.v.(3)Modify AHBMuxS2M.v.(4)Modify AHBAHBTop.v.

Page 18: Lab 9  ASIC Logic

6/11/2003 18

Architecture

Page 19: Lab 9  ASIC Logic

6/11/2003 19

Modification of AHBAHBTOP.v

Page 20: Lab 9  ASIC Logic

6/11/2003 20

RGB to YUV Program

Modification of AHBDecoder.v

Page 21: Lab 9  ASIC Logic

6/11/2003 21

RGB to YUV Program

Modification of AHBMuxS2M.v

Page 22: Lab 9  ASIC Logic

6/11/2003 22

MYIP.v modified from AHBZBTRAM.v

Page 23: Lab 9  ASIC Logic

6/11/2003 23

Divide HWDATA into r,g,b parts

Combine y,u,v into output HRDATA (2:1:1)

MYIP.v modified from AHBZBTRAM.v

Page 24: Lab 9  ASIC Logic

6/11/2003 24

Initialize LM Module

Software Implementation

Write RGB value into LM_MYIPand read YUV as data_myip

Post processor for data_myip to read out YUV value

Logic.c

Page 25: Lab 9  ASIC Logic

6/11/2003 25

Set Registor for LM_MYIP

Logic.h

Page 26: Lab 9  ASIC Logic

6/11/2003 26

Input parameters

Result of Pure Software Implementation

Result of Hardware Implementation

Page 27: Lab 9  ASIC Logic

6/11/2003 27

Verilog Coding

Confusion btw. Signed and Unsigned Multiplication

Truncation 負數的二進位轉換 小數點對齊

Page 28: Lab 9  ASIC Logic

6/11/2003 28

Integrator ASIC Platform [DUI_0098B_AP_UG] System Memory Map [DUI_0098B_AP_UG 4.1]

Reference


Top Related