OpenCores
URL https://opencores.org/ocsvn/yac/yac/trunk

Subversion Repositories yac

[/] [yac/] [trunk/] [test_sys/] [README.txt] - Blame information for rev 11

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 10 feddischso
 
2 11 feddischso
 
3
---------------------------------------
4
Author: C. Hättich (feddischson@gmx.com)
5
Date: 22 June 2015
6
---------------------------------------
7
 
8
Introduction
9
============
10
A simple test system is used to test the YAC core on a
11
Spartan 3an starter kit (Xilinx). This test system
12
is based on a or32 CPU with some on-chip ram and an uart.
13
 
14
The system is created with the tool
15
soc_maker (see https://github.com/feddischson/soc_maker),
16
which takes the configuration file test_sys.yaml and generates
17
all the required files.
18
The result is placed in ./build.
19
 
20
The software contains two parts, a PC part and a embedded part.
21
Both are build with SCons (see www.scons.org),
22
a replacement for make.
23
 
24
The PC part creates test patterns and sends them to the test-system
25
on the FPGA. The test system calculates the CORDIC result and sends it back.
26
This result is compared with a software based calculation.
27
 
28
 
29
 
30
 
31
 
32 10 feddischso
Dependencies:
33 11 feddischso
=============
34 10 feddischso
 - SVN / Git
35
 - SOC-Maker
36
 - SCons
37
 - or32 toolchain (compiler, linker, debugger)
38
 - advanced debug bridge software
39
 - Xilinx BSDL files (usually in our xilinx installation)
40
 - Spartan 3an starter kit
41
   (no hard dependenciy, but
42
   the procedure below needs to be adapted)
43
 
44
 
45 11 feddischso
Description
46
===========
47 10 feddischso
 
48
Do the following to get the test system working:
49
 
50
 
51
  # replace  in order to match your SOC-Maker version
52
  git clone  --branch  https://github.com/feddischson/soc_maker_lib.git
53
 
54 11 feddischso
  # initialize the soc_maker_lib
55
  soc_maker -i -l soc_maker_lib
56 10 feddischso
 
57
  # create the system
58 11 feddischso
  soc_maker -l ./ test_system.yaml
59 10 feddischso
 
60
 
61 11 feddischso
 
62 10 feddischso
  # create a Xilinx project file and synthesize all files
63
  # from ./rtl and ./build
64
 
65
 
66 11 feddischso
  # program your FPGA and start the adv_jtag_bridge
67
  #
68 10 feddischso
 
69 11 feddischso
  impact # and do the programming
70
  ./adv_jtag_bridge -t  -b  -x 1 xpc_usb
71
 
72
 
73
  #
74
  # Build and run the software
75
  #
76
 
77
  # in terminal 1:
78
  cd sw
79
  scons
80
  or32-elf-gdb test_sys_sw.or32 -x gdb.cmd
81
 
82
 
83
  #in terminal 2:
84
  cd sw
85
  ./test_tool /dev/ttyUSB0 115200 2000  #replace  /dev/ttyUSB0 with our serial port
86
 
87
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.