Docsity

Example SoC - Digital Signal Processing Architecture - Lecture Slides | ECE 747, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
Spring 2007W. Rhett Davis NC State University ECE 747 Slide 1
ECE 747
ECE 747
Digital Signal Processing Architecture
Digital Signal Processing Architecture
SoC
SoC Lecture
Lecture –
–
Example
Example SoC
SoC
February 22, 2007
February 22, 2007
W. Rhett Davis
W. Rhett Davis
NC State University
NC State University
Spring 2007W. Rhett Davis NC State University ECE 747 Slide 2
Today’s Lecture
zWhy SystemC Isn’t Enough
zclocked_fifo example in SoC Designer
zImporting SystemC Descriptions into
SoC Designer
zaxis2fifo example in SoC Designer
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Example SoC - Digital Signal Processing Architecture - Lecture Slides | ECE 747 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 1

ECE 747 ECE 747

Digital Signal Processing ArchitectureDigital Signal Processing Architecture

SoC LectureSoC Lecture ––

Example SoCExampleSoC

February 22, 2007February 22, 2007

W. Rhett DavisW. Rhett Davis

NC State UniversityNC State University

Today’s Lecture

z Why SystemC Isn’t Enough

z clocked_fifo example in SoC Designer

z Importing SystemC Descriptions into

SoC Designer

z axis2fifo example in SoC Designer

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 3

Why do we use SystemC?

z Much of this course deals with how to create efficient

systolic arrays to perform various DSP algorithms…

z …but an equally

important concern

is how to feed the

array.

z Transaction Level

Models give us a

convenient way to

analyze how the array

is fed

Z - b(k)

xk yk cell 0 cell 1 cell 2 cell L-2 cell L- rkm skm rk s (^) k FIR_cell FIR_cascade

Problem: Too Many Options

Processor ARM Interconnect Fabric AMBA AXI Peripherals Interrupt Controller Timer Hardware Accelerator Component Memory Controller PL Off-Chip Memory DDR2 SDRAM

16-bit? 32-bit?

Burst Mode?

Refresh Rate?

Buffer Size?

Clock Rate?

Page Size?

Split-Transaction?

Multi-Access?

Out-of-Order?

32-bit?

64-bit?

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 7

Simulation Interface

z An API that

allows

specification of

the cycle-

accurate

waveforms for

a transaction

z Candidates:

MxSI, CASI

Debug Interface

z An API that allows visibility of the state of

a block

z Candidates: MxDI, CADI

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 9

Profiling Interface

z An API that

allows

counting

events and

generating

reports

z Candidates:

MxPI, CAPI

Today’s Lecture

z Why SystemC Isn’t Enough

z clocked_fifo example in SoC Designer

z Importing SystemC Descriptions into

SoC Designer

z axis2fifo example in SoC Designer

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 13

clocked_fifo.mxp - output

  • Cycle 0:
  • 0 s (0 available) consumer waiting to read from fifo
  • 0 s (16 free) producer busy
  • 0 s (0 available) consumer waiting to read from fifo
  • 0 s (16 free) producer writing H to fifo
  • 0 s (15 free) producer wrote to fifo
  • Cycle 1:
  • 10 ns (1 available) consumer reading from fifo
  • 10 ns (0 available) consumer read H from fifo
  • 10 ns (15 free) producer writing e to fifo
  • 10 ns (14 free) producer wrote to fifo
  • Cycle 2:
  • 20 ns (1 available) consumer busy
  • 20 ns (15 free) producer writing l to fifo
  • 20 ns (14 free) producer wrote to fifo
  • Cycle 3:
  • 30 ns (2 available) consumer reading from fifo
  • 30 ns (1 available) consumer read e from fifo
  • 30 ns (14 free) producer busy
  • Cycle 4:
  • 40 ns (1 available) consumer reading from fifo
  • 40 ns (0 available) consumer read l from fifo
  • 40 ns (15 free) producer writing l to fifo
  • 40 ns (14 free) producer wrote to fifo

Today’s Lecture

z Why SystemC Isn’t Enough

z clocked_fifo example in SoC Designer

z Importing SystemC Descriptions into

SoC Designer

z axis2fifo example in SoC Designer

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 15

Changes to Header File

z include sc_mx_import_module.h , rather than

systemc.h

z All members must be public

z Derive modules from sc_mx_import_module , rather

than sc_module

z Declare constructor with SC_MX_IMPORT_CTOR ,

rather than SC_CTOR

z In constructor, re-declare ports with

registerSCGenericMasterPort() and … SlavePort().

z in init(), bind the clock port with getMxSCClock()

producer.h

  • #include "sc_mx_import_module.h"
  • class producer : public sc_mx_import_module
  • {
  • public:
  • sc_port<sc_fifo_out_if > out;
  • sc_in clock;
  • *const char str;
  • *const char p;
  • void main();
  • SC_HAS_PROCESS(producer);
  • SC_MX_IMPORT_CTOR(producer)
  • {
  • SC_METHOD(main);
  • sensitive_pos << clock;
  • registerSCGenericMasterPort(&out, "out");
  • str="Hello, World!\n";
  • p=str;
  • }
  • void init()
  • {
  • *clock( ( getMxSCClock() ) );
  • }
  • };

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 19

Today’s Lecture

z Why SystemC Isn’t Enough

z clocked_fifo example in SoC Designer

z Importing SystemC Descriptions into

SoC Designer

z axis2fifo example in SoC Designer

Connecting SystemC to other IP

z How can we make our SystemC code

communicate with other IP delivered with

SoC Designer?

» Need to write an interface between a

standard-bus and standard SystemC ports

» The axis2fifo example shows an example of

a block that translates all writes to an AXI

Slave port to writes to a sc_fifo port.

W. Rhett Davis NC State University ECE 747 Spring 2007 Slide 21

axis2fifo Example System

Stub – Generates

AXI transactions

according to a

script (MxScript)

PL300 ACI (AXI Configurable

Interconnect)

IP block available from ARM

copied from

clocked_fifo

example

axis2fifo custom block

master.mxscr – AXI Stub Script

• #include "AXI_Stub_Macros.h"

• wait(5);

• BURST1_WRITE(0,8,0x6f572c6f6c6c6548);

Address for Write

Bytes to Write (8 Max)

Data to Write

Defines “BURST1_WRITE” and other macros

Wait 5 cycles

axis2fifo.mxp - output

  • Cycle 9:
  • 90 ns (2 available) consumer reading from fifo
  • 90 ns (1 available) consumer read l from fifo
  • Cycle 10:
  • 100 ns (2 available) consumer busy
  • Cycle 11:
  • 110 ns (3 available) consumer busy
  • Cycle 12:
  • 120 ns (4 available) consumer reading from fifo
  • 120 ns (3 available) consumer read l from fifo
  • Cycle 13:
  • 130 ns (4 available) consumer busy
  • Cycle 14:
  • 140 ns (4 available) consumer reading from fifo
  • 140 ns (3 available) consumer read o from fifo
  • Cycle 15:
  • 150 ns (3 available) consumer busy