Académique Documents
Professionnel Documents
Culture Documents
T1 FPGA Implementation
Release 1.6 Update
●
– Microelectronics Group
–Sun Microsystems, Inc.
–www.OpenSPARC.net
64 bits, 64 threads, and free
Agenda
www.OpenSPARC.net 2
64 bits, 64 threads, and free
www.OpenSPARC.net 3
64 bits, 64 threads, and free
RTL Hierarchy
● Top level block for FPGA implementation
● design/sys/iop/iop_fpga.v
● RTL Path
● design/sys/iop/
● l2b/rtl Level-2 Cache
● ccx/rtl Cache Crossbar
● ccx2mb/rtl Cache Crossbar to MicroBlaze adapter
● fpu/rtl Floating-Point Unit
● dram/rtl DDR2 DRAM controller
● SPARC Core
● design/sys/iop/sparc/
● rtl/ Top-level code
● ifu/rtl Instruction Fetch Unit – Includes ITLB and I-Cache
● exu/rtl Execution Unit
● lsu/rtl Load-Store Unit – Includes DTLB and D-Cache
● ffu/rtl Floating-Point Front-end – Includes FP register file
www.OpenSPARC.net 4
● tlu/rtl Trap Logic Unit
64 bits, 64 threads, and free
Verification Environments
● Core1: Simulate a single SPARC core
● One SPARC core
● Level 2 cache
● Memory Controller
● Memory model
● Thread1: Simulate one single-thread SPARC core
● Same as Core 1, except that SPARC core is single thread
● Chip8: Simulate the entire OpenSPARC T1
● Eight SPARC cores
● Level 2 Cache
● I/O Subsystem
● Memory controller
● Memory model
● For the netlist (gate level) simulation, use vector
playback methodology (provided in DV guide)
www.OpenSPARC.net 5
64 bits, 64 threads, and free
Synthesis Scripts
● Scripts to run a synthesis tool
● tools/bin/rsyn Run Synopsys Design Compiler
● tools/bin/rsynp Run Synplicity FPGA Synthesis
● tools/bin/rxil Run Xilinx XST FPGA synthesis
www.OpenSPARC.net 6
64 bits, 64 threads, and free
Agenda
www.OpenSPARC.net 7
64 bits, 64 threads, and free
www.OpenSPARC.net 9
64 bits, 64 threads, and free
Test Completion
● At the end of the test, code will perform a
software trap
● The trap is to one of two locations
● GOOD_TRAP address indicates success
● BAD_TRAP address indicates a problem
● NOTE: There are two or three addresses for
GOOD_TRAP and two or three for BAD_TRAP
● User trap table, Supervisor trap table, Hypervisor trap
table
● Example:
good_end:
ta T_GOOD_TRAP
nop
www.OpenSPARC.net 10
64 bits, 64 threads, and free
Simulation Output
● A directory is created for each test
● Important Files:
● diag.s Copy of the original assembly language file
● diag.exe ELF executable of the test created by assembler
● mem.image Memory image of the test, including virtual memory
tables
● symbol.tbl Symbol table for the elf executable
● sim.log Simulation log file
● sims.log Log from sims program: including simulation log
● sas.log Log file created by the architectural simulator
www.OpenSPARC.net 12
64 bits, 64 threads, and free
Agenda
www.OpenSPARC.net 13
64 bits, 64 threads, and free
● Options:
● FPGA_SYN Optimize code for FPGA
● Required for all other options
● FPGA_SYN_1THREAD Create a single-thread core
● FPGA_SYN_NO_SPU Do not include the SPU
● FPGA_SYN_8TLB Reduce # of TLB entries to 8
(from 64)
● FPGA_SYN_16TLB Reduce # of TLB entries to 16
● CONNECT_SHADOW_SCAN Connect shadow scan in RTL
www.OpenSPARC.net 14
64 bits, 64 threads, and free
www.OpenSPARC.net 15
64 bits, 64 threads, and free
Agenda
www.OpenSPARC.net 17
64 bits, 64 threads, and free
www.OpenSPARC.net 18
64 bits, 64 threads, and free
● Cost Savings
● Don't have to pay fabrication costs for each new chip
www.OpenSPARC.net 19
64 bits, 64 threads, and free
www.OpenSPARC.net 21
64 bits, 64 threads, and free
www.OpenSPARC.net 22
64 bits, 64 threads, and free
System-on-FPGA
● Goal: Create a working system on an FPGA
Board
● Requires: core, memory interface, peripherals
● Core requires L2 cache for coherence, and
connectivity to memory controller
● This won't fit on the FPGA
● Needed a small replacement for L2
● And we had an aggressive schedule
● Solution:
● Use a Xilinx MicroBlaze Core to process memory
transactions
www.OpenSPARC.net 24
64 bits, 64 threads, and free
www.OpenSPARC.net 25
64 bits, 64 threads, and free
System Operation
● OpenSPARC T1 core communicates exclusively via
cache-crossbar interface (CCX)
● PCX (processor-to-cache), CPX (cache-to-processor)
● Glue logic block forwards packets between OpenSPARC core and
Microblaze
● Microblaze firmware polls T1 core and system
peripherals
● Services memory and I/O requests
● Performs address mapping
● Returns results to the core
● Maintains L1 cache coherence
www.OpenSPARC.net 26
64 bits, 64 threads, and free
www.OpenSPARC.net 27
64 bits, 64 threads, and free
Quick Start-Up
● Files:
● design/sys/edk/ace/
● OpenSPARCT1_1_6_os_boot.ace
● OpenSolaris Boot on a 4-thread core (on ML505-110T)
● OpenSPARCT1_1_6_Hello_World.ace
● Run a standalone program under hypervisor
● Procedure:
● Format a compact flash card with Xilinx filesystem
● Copy a file to the compact flash card
● Insert CF card into board socket (set DIP switches)
● Connect Serial port on board to a computer
● Using a null-modem serial cable
● Use Hyperterminal or some other terminal to connect
www.OpenSPARC.net 30
64 bits, 64 threads, and free
www.OpenSPARC.net 31
64 bits, 64 threads, and free
www.OpenSPARC.net 32
64 bits, 64 threads, and free
www.OpenSPARC.net 33
64 bits, 64 threads, and free
www.OpenSPARC.net 34
64 bits, 64 threads, and free
www.OpenSPARC.net 35
64 bits, 64 threads, and free
www.OpenSPARC.net 36
64 bits, 64 threads, and free
Software Stack
● Use Standard software
installation
● Use a virtual disk in RAM to
hold the Solaris binaries
● Some memory copy sections Solaris
performed by MicroBlaze Open Boot PROM
(OBP)
● MicroBlaze firmware now
performs floating-point Reset
Code Hypervisor
operations, so emulation is
not needed
www.OpenSPARC.net 37
64 bits, 64 threads, and free
Boot Sequence
● The processor starts at the Power-On Reset
(POR) trap handler
● Reset code is executed: Caches & TLBs
enabled
● Control passed to Hypervisor
● Hypervisor copies itself from PROM to RAM area
● Passes control to Open Boot PROM (OBP)
● OBP then loads the operating system
www.OpenSPARC.net 38
64 bits, 64 threads, and free
www.OpenSPARC.net 39
64 bits, 64 threads, and free
Solaris Boot
www.OpenSPARC.net 40
64 bits, 64 threads, and free
Curriculum Examples
http://wiki.opensparc.net/bin/view.pl/CourseMaterial
www.OpenSPARC.net 41
®
OpenSPARC/Niagara in textbooks
Computer Architecture:
A Quantitative Approach, 4th ed.
by John Hennessy and David Patterson
Oct. 2006 Published Nov. 2007
www.OpenSPARC.net 42
64 bits, 64 threads, and free
www.OpenSPARC.net 43
64 bits, 64 threads, and free
http://OpenSPARC.net
●
OpenSPARC
T1 FPGA implementation
Release 1.6 Update
●
– Microelectronics Group
–Sun Microsystems, Inc.
–www.OpenSPARC.net