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

Subversion Repositories zap

[/] [zap/] [trunk/] [README.md] - Blame information for rev 52

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 45 Revanth
## The ZAP ARM Processor (ARMv5T Compatible, FPGA Synthesizable Soft Processor)
2 26 Revanth
 
3 47 Revanth
### Author        : Revanth Kamaraj (revanth91kamaraj@gmail.com)
4 26 Revanth
 
5 43 Revanth
### Introduction
6 26 Revanth
 
7 43 Revanth
The ZAP processor is a 10 stage pipelined processor for FPGA with support for cache and MMU (ARMv5T compliant).
8 26 Revanth
 
9 52 Revanth
Please note that the processor is *not* an ARM clone but a completely different RTL design, written from scratch (in FPGA compliant Verilog-2001), that can run ARM v5T binaries (both user and kernel code), hence, no particular ARMX number is specified.
10 48 Revanth
 
11 52 Revanth
This project was originally created for the ORCONF-2016 Student Design Contest.
12 48 Revanth
 
13 52 Revanth
ZAP is specifically designed to work with FPGAs. To keep the code generic across FPGA vendors, inference based coding style is followed.
14 51 Revanth
 
15 45 Revanth
![Wishbone logo](https://wishbone-interconnect.readthedocs.io/en/latest/_images/wishbone_stamp.svg)
16
 
17 49 Revanth
#### Repos
18
 
19 52 Revanth
This project is hosted on Github and Opencores.
20
 
21 49 Revanth
GIT: https://github.com/krevanth/ZAP
22
 
23
SVN: https://opencores.org/projects/zap
24
 
25 43 Revanth
#### Features
26 26 Revanth
 
27 43 Revanth
##### ZAP Processor (zap_top.v)
28 26 Revanth
 
29 43 Revanth
The ZAP core is a pipelined ATMv5T processor for FPGA.
30 26 Revanth
 
31 43 Revanth
| Property              | Description             |
32
|-----------------------|-------------------------|
33
|HDL                    | Verilog-2001            |
34
|Author                 | Revanth Kamaraj         |
35
|ARM v5T ISA Support    | Fully compatible        |
36
|Branch Predictor       | Direct mapped bimodal   |
37
|Write Buffer           | Yes                     |
38
|Abort Model            | Base Restored           |
39
|Integrated v5T CP15    | Yes                     |
40
|External Coproc. Bus   | No                      |
41
|Cache Interface        | 128-Bit custom interface|
42
|26-Bit Support         | No                      |
43
|L1 Code Cache          | Direct mapped virtual   |
44
|L1 Data Cache          | Direct mapped virtual   |
45
|Cache Write Policy     | Writeback               |
46
|L1 Code TLB            | Direct mapped           |
47
|L1 Data TLB            | Direct mapped           |
48
|Bus Interface          | 32-bit Wishbone B3 Linear incrementing burst |
49
|Cache/TLB Lock Support | No                      |
50
|CP15 Compliance        | v5T (No fine pages)     |
51
|FCSE Support           | Yes                     |
52 52 Revanth
|Cache Read Speed (Hit) | 320MB/s @ 80MHz CLK     |
53
|Cache Write Speed(Hit) | 160MB/s @ 80MHz CLK     |
54
|Cache Line Size        | 16B                     |
55 26 Revanth
 
56 51 Revanth
 * 10-stage pipeline design. Pipeline has extensive bypass network to resolve dependencies. Most operations execute at a rate of 1 operation per clock.
57 43 Revanth
 * 2 write ports for the register file to allow LDR/STR with writeback to execute as a single instruction.
58 51 Revanth
 * Instructions of ALU + Shift can allow execution of subsequent commands with dependencies if the subsequent command doesn't use the shifter. This is done by having a dual feedback network.
59
 * The core is specifically designed for use in FGPA and relies on FGPA inference to allow portability across FPGA vendors.
60 26 Revanth
 
61 43 Revanth
#### CPU Configuration (zap_top.v)
62
 
63
| Parameter                | Default| Description |
64
|--------------------------|--------|-------------|
65
| BP_ENTRIES               |  1024 | Branch Predictor Settings. Predictor RAM depth. Must be 2^n and > 2 |
66
| FIFO_DEPTH               |  4    | Branch Predictor Settings. Command FIFO depth. Must be 2^n and > 2  |
67
| STORE_BUFFER_DEPTH       | 16    | Branch Predictor Settings. Depth of the store buffer. Must be 2^n and > 2 |
68
| DATA_SECTION_TLB_ENTRIES |  4    | Data Cache/MMU Configuration. Section TLB entries. Must be 2^n (n > 0) |
69
| DATA_LPAGE_TLB_ENTRIES   |  8    | Data Cache/MMU Configuration. Large page TLB entries. Must be 2^n (n > 0) |
70
| DATA_SPAGE_TLB_ENTRIES   |  16   | Data Cache/MMU Configuration. Small page TLB entries. Must be 2^n (n > 0) |
71
| DATA_CACHE_SIZE          |  1024 | Data Cache/MMU Configuration. Cache size in bytes. Must be at least 256B and 2^n |
72
| CODE_SECTION_TLB_ENTRIES |  4    | Instruction Cache/MMU Configuration. Section TLB entries. Must be 2^n (n > 0) |
73
| CODE_LPAGE_TLB_ENTRIES   |  8    | Instruction Cache/MMU Configuration. Large page TLB entries. Must be 2^n (n > 0) |
74
| CODE_SPAGE_TLB_ENTRIES   |  16   | Instruction Cache/MMU Configuration. Small page TLB entries. Must be 2^n (n > 0) |
75
| CODE_CACHE_SIZE          |  1024 | Instruction Cache/MMU Configuration. Cache size in bytes. Must be at least 256B and 2^n |
76
 
77
#### CPU IO Interface (zap_top.v)
78 26 Revanth
 
79
Wishbone B3 compatible 32-bit bus.
80
 
81 43 Revanth
|        Dir    | Size     | Port               | Description                      |
82
|---------------|----------|--------------------|----------------------------------|
83
|        input  |          | i_clk              |  Clock                           |
84
|        input  |          | i_reset            |  Reset                           |
85
|        input  |          | i_irq              |  Interrupt. Level Sensitive.     |
86
|        input  |          | i_fiq              |  Fast Interrupt. Level Sensitive.|
87
|        output |          |  o_wb_cyc          |  Wishbone B3 Signal              |
88
|        output |          |  o_wb_stb          |  WIshbone B3 signal              |
89
|        output | [31:0]   |  o_wb_adr          |  Wishbone B3 signal.             |
90
|        output |          |  o_wb_we           |  Wishbone B3 signal.             |
91
|        output | [31:0]   |  o_wb_dat          |  Wishbone B3 signal.             |
92
|        output | [3:0]    |  o_wb_sel          |  Wishbone B3 signal.             |
93 52 Revanth
|        output | [2:0]    |  o_wb_cti          |  Wishbone B3 signal. Cycle Type Indicator (Supported modes: Incrementing Burst, End of Burst) |
94
|        output | [1:0]    |  o_wb_bte          |  Wishbone B3 signal. Burst Type Indicator (Supported modes: Linear)                           |
95 43 Revanth
|        input  |          |  i_wb_ack          |  Wishbone B3 signal.             |
96
|        input  | [31:0]   |  i_wb_dat          |  Wishbone B3 signal.             |
97
|        output |          |   o_wb_stb_nxt     | IGNORE THIS PORT. LEAVE OPEN.    |
98
|        output |          |   o_wb_cyc_nxt     | IGNORE THIS PORT. LEAVE OPEN.    |
99
|        output |   [31:0] |   o_wb_adr_nxt     | IGNORE THIS PORT. LEAVE OPEN.    |
100 26 Revanth
 
101 52 Revanth
### Directory Structure
102 26 Revanth
 
103 52 Revanth
 
104
 
105
├── LICENSE
106
 
107
├── makefile
108
 
109
├── README.md
110
 
111
└── src
112
 
113
        ├── rtl
114
        │   └── cpu
115
        │       ├── zap_alu_main.v
116
        │       ├── zap_cache_fsm.v
117
        │       ├── zap_cache_tag_ram.v
118
        │       ├── zap_cache.v
119
        │       ├── zap_core.v
120
        │       ├── zap_cp15_cb.v
121
        │       ├── zap_decode_main.v
122
        │       ├── zap_decode.v
123
        │       ├── zap_decompile.v
124
        │       ├── zap_defines.vh
125
        │       ├── zap_fetch_main.v
126
        │       ├── zap_fifo.v
127
        │       ├── zap_functions.vh
128
        │       ├── zap_issue_main.v
129
        │       ├── zap_localparams.vh
130
        │       ├── zap_mem_inv_block.v
131
        │       ├── zap_memory_main.v
132
        │       ├── zap_predecode_compress.v
133
        │       ├── zap_predecode_coproc.v
134
        │       ├── zap_predecode_main.v
135
        │       ├── zap_predecode_mem_fsm.v
136
        │       ├── zap_ram_simple.v
137
        │       ├── zap_register_file.v
138
        │       ├── zap_shifter_main.v
139
        │       ├── zap_shifter_multiply.v
140
        │       ├── zap_shift_shifter.v
141
        │       ├── zap_sync_fifo.v
142
        │       ├── zap_thumb_decoder.v
143
        │       ├── zap_tlb_check.v
144
        │       ├── zap_tlb_fsm.v
145
        │       ├── zap_tlb.v
146
        │       ├── zap_top.v
147
        │       ├── zap_wb_adapter.v
148
        │       ├── zap_wb_merger.v
149
        │       └── zap_writeback.v
150
        ├── scripts
151
        │   ├── bin2vlog.pl
152
        │   ├── Config.cfg_template
153
        │   ├── makefile
154
        │   ├── run_sim.pl
155
        │   └── uart_input.bash
156
        ├── testbench
157
        │   ├── chip_top.v
158
        │   ├── External_IP
159
        │   │   └── uart16550
160
        │   │       ├── doc
161
        │   │       │   ├── CHANGES.txt
162
        │   │       │   ├── src
163
        │   │       │   │   └── UART_spec.doc
164
        │   │       │   └── UART_spec.pdf
165
        │   │       └── rtl
166
        │   │           ├── raminfr.v
167
        │   │           ├── uart_debug_if.v
168
        │   │           ├── uart_defines.v
169
        │   │           ├── uart_receiver.v
170
        │   │           ├── uart_regs.v
171
        │   │           ├── uart_rfifo.v
172
        │   │           ├── uart_sync_flops.v
173
        │   │           ├── uart_tfifo.v
174
        │   │           ├── uart_top.v
175
        │   │           ├── uart_transmitter.v
176
        │   │           └── uart_wb.v
177
        │   ├── ram.v
178
        │   ├── timer.v
179
        │   ├── uart_rx_logger.v
180
        │   ├── uart_tx_dumper.v
181
        │   ├── vic.v
182
        │   └── zap_tb.v
183
        └── ts
184
            ├── arm_test
185
            │   ├── arm_test.c
186
            │   ├── arm_test.ld
187
            │   ├── arm_test.s
188
            │   ├── Config.cfg
189
            │   ├── Description.txt
190
            │   └── makefile
191
            ├── factorial
192
            │   ├── Config.cfg
193
            │   ├── Description.txt
194
            │   ├── factorial.c
195
            │   ├── factorial.ld
196
            │   ├── factorial.s
197
            │   └── makefile
198
            ├── makefile
199
            ├── thumb_test
200
            │   ├── Config.cfg
201
            │   ├── Description.txt
202
            │   ├── linker.ld
203
            │   ├── main.c
204
            │   ├── makefile
205
            │   └── thumb.s
206
            └── uart
207
                ├── Config.cfg
208
                ├── Description.txt
209
                ├── irq_handler.c
210
                ├── main.c
211
                ├── makefile
212
                ├── uart.c
213
                ├── uart.h
214
                ├── uart.ld
215
                └── uart.s
216
 
217 51 Revanth
### Run Sample Tests
218
 
219 43 Revanth
*Tested on Ubuntu 16.04 LTS/18.04 LTS*
220 26 Revanth
 
221 43 Revanth
Let the variable $test_name hold the name of the test. See the src/ts directory for some basic tests pre-installed. Available test names are: factorial, arm_test, thumb_test, uart. New tests can be added using these as starting templates. Please note that these will be run on the SOC platform (chip_top) that consist of the ZAP processor, 2 x UARTs, a VIC and a timer.
222 42 Revanth
 
223 43 Revanth
```bash
224 52 Revanth
sudo apt-get install gcc-arm-none-eabi binutils-arm-none-eabi gdb openocd
225
sudo apt-get install iverilog gtkwave make perl xterm
226 43 Revanth
cd $PROJ_ROOT/src/ts/$test_name # $PROJ_ROOT is the project directory.
227 52 Revanth
make                            # Runs the test using IVerilog.
228 43 Revanth
cd $PROJ_ROOT/obj/ts/$test_name # Switch to object folder.
229 52 Revanth
gvim zap.log.gz                 # View the log file
230
gtkwave zap.vcd.gz              # Exists if selected by Config.cfg of that test case.
231 43 Revanth
```
232 44 Revanth
To use this processor in your SOC, instantiate this top level CPU module in your project: /src/rtl/cpu/zap_top.v
233 42 Revanth
 
234 51 Revanth
### FPGA Timing Performance (Vivado, Retime Enabled)
235 43 Revanth
 
236
| FPGA Part          | Speed |  Critical Path |
237
|--------------------|-------|----------------|
238
| xc7a35tiftg256-1L  | 80MHz | Cache access   |
239
 
240 47 Revanth
### License
241
 
242
 
243
                    GNU GENERAL PUBLIC LICENSE
244
                       Version 2, June 1991
245
 
246
 Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
247
 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
248
 Everyone is permitted to copy and distribute verbatim copies
249
 of this license document, but changing it is not allowed.
250
 
251
                            Preamble
252
 
253
  The licenses for most software are designed to take away your
254
freedom to share and change it.  By contrast, the GNU General Public
255
License is intended to guarantee your freedom to share and change free
256
software--to make sure the software is free for all its users.  This
257
General Public License applies to most of the Free Software
258
Foundation's software and to any other program whose authors commit to
259
using it.  (Some other Free Software Foundation software is covered by
260
the GNU Lesser General Public License instead.)  You can apply it to
261
your programs, too.
262
 
263
  When we speak of free software, we are referring to freedom, not
264
price.  Our General Public Licenses are designed to make sure that you
265
have the freedom to distribute copies of free software (and charge for
266
this service if you wish), that you receive source code or can get it
267
if you want it, that you can change the software or use pieces of it
268
in new free programs; and that you know you can do these things.
269
 
270
  To protect your rights, we need to make restrictions that forbid
271
anyone to deny you these rights or to ask you to surrender the rights.
272
These restrictions translate to certain responsibilities for you if you
273
distribute copies of the software, or if you modify it.
274
 
275
  For example, if you distribute copies of such a program, whether
276
gratis or for a fee, you must give the recipients all the rights that
277
you have.  You must make sure that they, too, receive or can get the
278
source code.  And you must show them these terms so they know their
279
rights.
280
 
281
  We protect your rights with two steps: (1) copyright the software, and
282
(2) offer you this license which gives you legal permission to copy,
283
distribute and/or modify the software.
284
 
285
  Also, for each author's protection and ours, we want to make certain
286
that everyone understands that there is no warranty for this free
287
software.  If the software is modified by someone else and passed on, we
288
want its recipients to know that what they have is not the original, so
289
that any problems introduced by others will not reflect on the original
290
authors' reputations.
291
 
292
  Finally, any free program is threatened constantly by software
293
patents.  We wish to avoid the danger that redistributors of a free
294
program will individually obtain patent licenses, in effect making the
295
program proprietary.  To prevent this, we have made it clear that any
296
patent must be licensed for everyone's free use or not licensed at all.
297
 
298
  The precise terms and conditions for copying, distribution and
299
modification follow.
300
 
301
                    GNU GENERAL PUBLIC LICENSE
302
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
303
 
304
  0. This License applies to any program or other work which contains
305
a notice placed by the copyright holder saying it may be distributed
306
under the terms of this General Public License.  The "Program", below,
307
refers to any such program or work, and a "work based on the Program"
308
means either the Program or any derivative work under copyright law:
309
that is to say, a work containing the Program or a portion of it,
310
either verbatim or with modifications and/or translated into another
311
language.  (Hereinafter, translation is included without limitation in
312
the term "modification".)  Each licensee is addressed as "you".
313
 
314
Activities other than copying, distribution and modification are not
315
covered by this License; they are outside its scope.  The act of
316
running the Program is not restricted, and the output from the Program
317
is covered only if its contents constitute a work based on the
318
Program (independent of having been made by running the Program).
319
Whether that is true depends on what the Program does.
320
 
321
  1. You may copy and distribute verbatim copies of the Program's
322
source code as you receive it, in any medium, provided that you
323
conspicuously and appropriately publish on each copy an appropriate
324
copyright notice and disclaimer of warranty; keep intact all the
325
notices that refer to this License and to the absence of any warranty;
326
and give any other recipients of the Program a copy of this License
327
along with the Program.
328
 
329
You may charge a fee for the physical act of transferring a copy, and
330
you may at your option offer warranty protection in exchange for a fee.
331
 
332
  2. You may modify your copy or copies of the Program or any portion
333
of it, thus forming a work based on the Program, and copy and
334
distribute such modifications or work under the terms of Section 1
335
above, provided that you also meet all of these conditions:
336
 
337
    a) You must cause the modified files to carry prominent notices
338
    stating that you changed the files and the date of any change.
339
 
340
    b) You must cause any work that you distribute or publish, that in
341
    whole or in part contains or is derived from the Program or any
342
    part thereof, to be licensed as a whole at no charge to all third
343
    parties under the terms of this License.
344
 
345
    c) If the modified program normally reads commands interactively
346
    when run, you must cause it, when started running for such
347
    interactive use in the most ordinary way, to print or display an
348
    announcement including an appropriate copyright notice and a
349
    notice that there is no warranty (or else, saying that you provide
350
    a warranty) and that users may redistribute the program under
351
    these conditions, and telling the user how to view a copy of this
352
    License.  (Exception: if the Program itself is interactive but
353
    does not normally print such an announcement, your work based on
354
    the Program is not required to print an announcement.)
355
 
356
These requirements apply to the modified work as a whole.  If
357
identifiable sections of that work are not derived from the Program,
358
and can be reasonably considered independent and separate works in
359
themselves, then this License, and its terms, do not apply to those
360
sections when you distribute them as separate works.  But when you
361
distribute the same sections as part of a whole which is a work based
362
on the Program, the distribution of the whole must be on the terms of
363
this License, whose permissions for other licensees extend to the
364
entire whole, and thus to each and every part regardless of who wrote it.
365
 
366
Thus, it is not the intent of this section to claim rights or contest
367
your rights to work written entirely by you; rather, the intent is to
368
exercise the right to control the distribution of derivative or
369
collective works based on the Program.
370
 
371
In addition, mere aggregation of another work not based on the Program
372
with the Program (or with a work based on the Program) on a volume of
373
a storage or distribution medium does not bring the other work under
374
the scope of this License.
375
 
376
  3. You may copy and distribute the Program (or a work based on it,
377
under Section 2) in object code or executable form under the terms of
378
Sections 1 and 2 above provided that you also do one of the following:
379
 
380
    a) Accompany it with the complete corresponding machine-readable
381
    source code, which must be distributed under the terms of Sections
382
    1 and 2 above on a medium customarily used for software interchange; or,
383
 
384
    b) Accompany it with a written offer, valid for at least three
385
    years, to give any third party, for a charge no more than your
386
    cost of physically performing source distribution, a complete
387
    machine-readable copy of the corresponding source code, to be
388
    distributed under the terms of Sections 1 and 2 above on a medium
389
    customarily used for software interchange; or,
390
 
391
    c) Accompany it with the information you received as to the offer
392
    to distribute corresponding source code.  (This alternative is
393
    allowed only for noncommercial distribution and only if you
394
    received the program in object code or executable form with such
395
    an offer, in accord with Subsection b above.)
396
 
397
The source code for a work means the preferred form of the work for
398
making modifications to it.  For an executable work, complete source
399
code means all the source code for all modules it contains, plus any
400
associated interface definition files, plus the scripts used to
401
control compilation and installation of the executable.  However, as a
402
special exception, the source code distributed need not include
403
anything that is normally distributed (in either source or binary
404
form) with the major components (compiler, kernel, and so on) of the
405
operating system on which the executable runs, unless that component
406
itself accompanies the executable.
407
 
408
If distribution of executable or object code is made by offering
409
access to copy from a designated place, then offering equivalent
410
access to copy the source code from the same place counts as
411
distribution of the source code, even though third parties are not
412
compelled to copy the source along with the object code.
413
 
414
  4. You may not copy, modify, sublicense, or distribute the Program
415
except as expressly provided under this License.  Any attempt
416
otherwise to copy, modify, sublicense or distribute the Program is
417
void, and will automatically terminate your rights under this License.
418
However, parties who have received copies, or rights, from you under
419
this License will not have their licenses terminated so long as such
420
parties remain in full compliance.
421
 
422
  5. You are not required to accept this License, since you have not
423
signed it.  However, nothing else grants you permission to modify or
424
distribute the Program or its derivative works.  These actions are
425
prohibited by law if you do not accept this License.  Therefore, by
426
modifying or distributing the Program (or any work based on the
427
Program), you indicate your acceptance of this License to do so, and
428
all its terms and conditions for copying, distributing or modifying
429
the Program or works based on it.
430
 
431
  6. Each time you redistribute the Program (or any work based on the
432
Program), the recipient automatically receives a license from the
433
original licensor to copy, distribute or modify the Program subject to
434
these terms and conditions.  You may not impose any further
435
restrictions on the recipients' exercise of the rights granted herein.
436
You are not responsible for enforcing compliance by third parties to
437
this License.
438
 
439
  7. If, as a consequence of a court judgment or allegation of patent
440
infringement or for any other reason (not limited to patent issues),
441
conditions are imposed on you (whether by court order, agreement or
442
otherwise) that contradict the conditions of this License, they do not
443
excuse you from the conditions of this License.  If you cannot
444
distribute so as to satisfy simultaneously your obligations under this
445
License and any other pertinent obligations, then as a consequence you
446
may not distribute the Program at all.  For example, if a patent
447
license would not permit royalty-free redistribution of the Program by
448
all those who receive copies directly or indirectly through you, then
449
the only way you could satisfy both it and this License would be to
450
refrain entirely from distribution of the Program.
451
 
452
If any portion of this section is held invalid or unenforceable under
453
any particular circumstance, the balance of the section is intended to
454
apply and the section as a whole is intended to apply in other
455
circumstances.
456
 
457
It is not the purpose of this section to induce you to infringe any
458
patents or other property right claims or to contest validity of any
459
such claims; this section has the sole purpose of protecting the
460
integrity of the free software distribution system, which is
461
implemented by public license practices.  Many people have made
462
generous contributions to the wide range of software distributed
463
through that system in reliance on consistent application of that
464
system; it is up to the author/donor to decide if he or she is willing
465
to distribute software through any other system and a licensee cannot
466
impose that choice.
467
 
468
This section is intended to make thoroughly clear what is believed to
469
be a consequence of the rest of this License.
470
 
471
  8. If the distribution and/or use of the Program is restricted in
472
certain countries either by patents or by copyrighted interfaces, the
473
original copyright holder who places the Program under this License
474
may add an explicit geographical distribution limitation excluding
475
those countries, so that distribution is permitted only in or among
476
countries not thus excluded.  In such case, this License incorporates
477
the limitation as if written in the body of this License.
478
 
479
  9. The Free Software Foundation may publish revised and/or new versions
480
of the General Public License from time to time.  Such new versions will
481
be similar in spirit to the present version, but may differ in detail to
482
address new problems or concerns.
483
 
484
Each version is given a distinguishing version number.  If the Program
485
specifies a version number of this License which applies to it and "any
486
later version", you have the option of following the terms and conditions
487
either of that version or of any later version published by the Free
488
Software Foundation.  If the Program does not specify a version number of
489
this License, you may choose any version ever published by the Free Software
490
Foundation.
491
 
492
  10. If you wish to incorporate parts of the Program into other free
493
programs whose distribution conditions are different, write to the author
494
to ask for permission.  For software which is copyrighted by the Free
495
Software Foundation, write to the Free Software Foundation; we sometimes
496
make exceptions for this.  Our decision will be guided by the two goals
497
of preserving the free status of all derivatives of our free software and
498
of promoting the sharing and reuse of software generally.
499
 
500
                            NO WARRANTY
501
 
502
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
503
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
504
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
505
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
506
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
507
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
508
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
509
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
510
REPAIR OR CORRECTION.
511
 
512
  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
513
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
514
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
515
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
516
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
517
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
518
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
519
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
520
POSSIBILITY OF SUCH DAMAGES.
521
 
522
                     END OF TERMS AND CONDITIONS
523
 
524
            How to Apply These Terms to Your New Programs
525
 
526
  If you develop a new program, and you want it to be of the greatest
527
possible use to the public, the best way to achieve this is to make it
528
free software which everyone can redistribute and change under these terms.
529
 
530
  To do so, attach the following notices to the program.  It is safest
531
to attach them to the start of each source file to most effectively
532
convey the exclusion of warranty; and each file should have at least
533
the "copyright" line and a pointer to where the full notice is found.
534
 
535
    
536
    Copyright (C)   
537
 
538
    This program is free software; you can redistribute it and/or modify
539
    it under the terms of the GNU General Public License as published by
540
    the Free Software Foundation; either version 2 of the License, or
541
    (at your option) any later version.
542
 
543
    This program is distributed in the hope that it will be useful,
544
    but WITHOUT ANY WARRANTY; without even the implied warranty of
545
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
546
    GNU General Public License for more details.
547
 
548
    You should have received a copy of the GNU General Public License along
549
    with this program; if not, write to the Free Software Foundation, Inc.,
550
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
551
 
552
Also add information on how to contact you by electronic and paper mail.
553
 
554
If the program is interactive, make it output a short notice like this
555
when it starts in an interactive mode:
556
 
557
    Gnomovision version 69, Copyright (C) year name of author
558
    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
559
    This is free software, and you are welcome to redistribute it
560
    under certain conditions; type `show c' for details.
561
 
562
The hypothetical commands `show w' and `show c' should show the appropriate
563
parts of the General Public License.  Of course, the commands you use may
564
be called something other than `show w' and `show c'; they could even be
565
mouse-clicks or menu items--whatever suits your program.
566
 
567
You should also get your employer (if you work as a programmer) or your
568
school, if any, to sign a "copyright disclaimer" for the program, if
569
necessary.  Here is a sample; alter the names:
570
 
571
  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
572
  `Gnomovision' (which makes passes at compilers) written by James Hacker.
573
 
574
  , 1 April 1989
575
  Ty Coon, President of Vice
576
 
577
This General Public License does not permit incorporating your program into
578
proprietary programs.  If your program is a subroutine library, you may
579
consider it more useful to permit linking proprietary applications with the
580
library.  If this is what you want to do, use the GNU Lesser General
581
Public License instead of this License.

powered by: WebSVN 2.1.0

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