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

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [soc/] [led_fh_ring_example/] [1.0/] [readme.txt] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
-----------------------
2
led_fh_ring_example
3
-----------------------
4
 
5
Purpose: Demonstrate Kactus tool, https://sourceforge.net/projects/kactus2/
6
         Running this ensures that you have installed the tools
7
         and libraries correctly. Pinmaps for Altera/Terasic DE2 FPGA board are included.
8
 
9
HW structure:
10
        Ring network with 16 terminals.
11
        8 switches  and 8 leds.
12
 
13
 
14
Directories
15
        ip_xact IP-XACT descriptions (XML) for the demo. These
16
                are handled by Kactus.
17
 
18
        quartus Synthesis settings. Run Altera Quartus in this directory.
19
 
20
        sim     Simulation scripts. Run Modelsim in this directory.
21
 
22
        vhd     Incl. top-level VHDL description.
23
 
24
        Note that VHDL for the ring and interfaces to switches/leds are elsewhere.
25
 
26
 
27
Usage in Kactus:
28
        Start Kactus.
29
 
30
        Click magnifying glass icon ("Search IP-XACT files") to setup the library.
31
 
32
        Browse the library and locate "TUT::soc::led_fh_ring_example::1.0"
33
 
34
        Open both "design" and "component" with right mouse button.
35
 
36
        In Kactus, you can
37
            Re-generate top-level VHDL                  (exists laready in ./vhd)
38
            Re-generate simulation scripts for Modelsim (exists already in ./sim)
39
            Generate synthesis project for Quartus      (pinmap for DE2 board exists already in ./sim)
40
            Generate HTML documentation
41
            Play around with generics                   (e.g. which switch controls which led etc.)
42
 
43
 
44
Usage after/without Kactus:
45
        ----------
46
        Simulating
47
        ----------
48
        > cd sim
49
        > vsim &
50
        > do create_makefile
51
        > do sim.do
52
        These scripts compile evertyhing and run a short example (toggle switches
53
        to light up few leds).
54
 
55
 
56
 
57
        ---------
58
        Synthesis
59
        ---------
60
        Kactus creates the synthesis project automatically, so you can select option a), otherwise you
61
        must select b)
62
 
63
        > quartus &
64
 
65
        a) > File -> Open Project -> ./quartus/led_fh_ring_example.qpf
66
        b) > File -> New project wizard,
67
             add all the files,
68
             Assignments -> Import assignments -> ./quartus/pinmap_cyclone_2_EP2C35F672C6.qsf
69
 
70
        > Processing -> Start compilation (or siply CTRL+L)
71
        > Tools -> Programmer and click Start
72
 
73
        You can now use switches 0-7 to control the leds 0-7. Switch 17 is reset.
74
 
75
 
76
Voilą!
77
 
78
---
79
 
80
Erno Salminen, TUT
81
2011-12-13

powered by: WebSVN 2.1.0

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