1 |
5 |
sonicwave |
|
2 |
|
|
TosNet rev3.2
|
3 |
|
|
MicroBlaze Peripheral, readme.txt
|
4 |
|
|
|
5 |
|
|
Simon Falsig
|
6 |
|
|
University of Southern Denmark
|
7 |
|
|
Copyright 2010
|
8 |
|
|
|
9 |
|
|
This file is part of the TosNet MicroBlaze Peripheral
|
10 |
|
|
|
11 |
|
|
The TosNet MicroBlaze peripheral is free software: you can redistribute it
|
12 |
|
|
and/or modify it under the terms of the GNU Lesser General Public License as
|
13 |
|
|
published by the Free Software Foundation, either version 3 of the License,
|
14 |
|
|
or (at your option) any later version.
|
15 |
|
|
|
16 |
|
|
The TosNet MicroBlaze peripheral is distributed in the hope that it will be
|
17 |
|
|
useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
|
19 |
|
|
General Public License for more details.
|
20 |
|
|
|
21 |
|
|
You should have received a copy of the GNU Lesser General Public License
|
22 |
|
|
along with the TosNet MicroBlaze peripheral. If not, see
|
23 |
|
|
.
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
******************************************
|
27 |
|
|
* Description
|
28 |
|
|
******************************************
|
29 |
|
|
The TosNet MicroBlaze peripheral provides an implementation of the TosNet
|
30 |
|
|
core, interfaced to the MicroBlaze PLB bus, along with a software driver
|
31 |
|
|
to support the functionality.
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
******************************************
|
35 |
|
|
* Installation
|
36 |
|
|
******************************************
|
37 |
|
|
Copy the contents of the 'drivers' and 'pcores' folders to an EDK peripheral
|
38 |
|
|
repository, preserving the original folder structure.
|
39 |
|
|
|
40 |
|
|
For instance:
|
41 |
|
|
c:\XilinxEDKRepository\MyProcessorIPLib\pcores\tosnet_v3_20_a
|
42 |
|
|
c:\XilinxEDKRepository\MyProcessorIPLib\drivers\tosnet_v3_20_a
|
43 |
|
|
|
44 |
|
|
You should now have access to the TosNet core from within EDKs IP Library.
|
45 |
|
|
|
46 |
|
|
|
47 |
|
|
******************************************
|
48 |
|
|
* Usage, XPS
|
49 |
|
|
******************************************
|
50 |
|
|
1. Add the TosNet component to your design.
|
51 |
|
|
|
52 |
|
|
2. Make 'sig_in' and 'sig_out' external, and connect these to your
|
53 |
|
|
transmission components.
|
54 |
|
|
|
55 |
|
|
3. Connect 'clk_50M' to a 50 MHz clock signal.
|
56 |
|
|
|
57 |
|
|
4. Connect the 'sync_strobe' and 'system_halt' interrupt signals to an
|
58 |
|
|
interrupt controller, if necessary.
|
59 |
|
|
|
60 |
|
|
5. Connect the TosNet component to the PLB bus.
|
61 |
|
|
|
62 |
|
|
6. Configure the TosNet component to your likings ('Configure IP').
|
63 |
|
|
Important settings are the 'C_NODE_ID' and 'C_REG_ENABLE', that
|
64 |
|
|
configure the node id and register enables, respectively.
|
65 |
|
|
|
66 |
|
|
7. Generate addresses for the memory and register spaces. The memory space
|
67 |
|
|
needs 8 kB, the register space needs 40 B (in both cases, larger spaces
|
68 |
|
|
of course work fine too).
|
69 |
|
|
|
70 |
|
|
8. Done!
|
71 |
|
|
|
72 |
|
|
|
73 |
|
|
******************************************
|
74 |
|
|
* Usage, SDK
|
75 |
|
|
******************************************
|
76 |
|
|
1. Make sure that SDK is using the TosNet driver for the TosNet component.
|
77 |
|
|
|
78 |
|
|
2. Initialize a TosNet structure.
|
79 |
|
|
|
80 |
|
|
3. Use the API described in 'tosnet.h' to access the TosNet component.
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
******************************************
|
84 |
|
|
* Important notes
|
85 |
|
|
******************************************
|
86 |
|
|
The MicroBlaze peripheral uses the exact same source files as the standard
|
87 |
|
|
TosNet component. This also goes for the BlockRAM and FIFO cores. The cores
|
88 |
|
|
delivered with the peripheral are created for the xc6slx16,csg234 device.
|
89 |
|
|
|
90 |
|
|
If you need to use the peripheral with other devices, you may have to
|
91 |
|
|
recreate the cores, using the settings described in the readme in the
|
92 |
|
|
'pcores\tosnet_v3_20_a\netlist' folder.
|
93 |
|
|
|
94 |
|
|
|
95 |
|
|
******************************************
|
96 |
|
|
* End of file
|
97 |
|
|
******************************************
|