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

Subversion Repositories fwrisc

[/] [fwrisc/] [trunk/] [ve/] [fwrisc/] [tests/] [riscv-compliance/] [doc/] [README.adoc] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 mballance
= RISC-V Compliance Tests =
2
RISC-V Foundation Compliance Task Group
3
Issue 1.10 Draft
4
:toc:
5
:icons: font
6
:numbered:
7
:source-highlighter: rouge
8
 
9
////
10
SPDX-License-Identifier: CC-BY-4.0
11
 
12
Document conventions:
13
- one line per paragraph (don't fill lines - this makes changes clearer)
14
- Wikipedia heading conventions (First word only capitalized)
15
- US spelling throughout.
16
- Run "make spell" before committing changes.
17
- Build the HTML and commit it with any changed source.
18
- Do not commit the PDF!
19
////
20
 
21
== Introduction
22
=== About
23
 
24
This document describes the RISC-V Compliance Testing framework which is used to test a RISC-V device's compliance  to the different RISC-V specifications.
25
 
26
* It explains the required structure of a test, the framework around the tests, the running of individual tests, and the suites of tests.
27
 
28
* It includes, as reference, details of the first suite of tests for the RV32I and their reference signatures.
29
 
30
* It explains how to set up different targets to run the tests.
31
 
32
* It is an expansion of the work carried out by Codasip in the second half of 2017.
33
 
34
This document is made freely available under a <>.
35
 
36
=== Purpose of compliance tests
37
 
38
The goal of compliance tests is to check whether the processor under development meets the open RISC-V standards or not. It is considered as non-functional testing meaning that it doesn’t substitute for design verification. This can be interpreted as testing to check all important aspects of the specification but without focusing on details, for example, on all possible values of instruction operands or all combinations of possible registers.
39
 
40
The result that compliance tests provide to the user is an assurance that the specification has been interpreted correctly and the design under test (DUT) can be declared as RISC-V compliant.
41
 
42
=== Intended audience
43
 
44
This document is intended for design and verification engineers who wish to develop new compliance tests and also those who wish check if their implementation (simulation models, HDL models, etc.) of a RISC-V processor is compliant to the RISC-V specifications.
45
 
46
=== Future work
47
 
48
This is a work in progress. A number of areas need resolving before the work is complete, and are recorded here so they do not get forgotten.
49
 
50
Consider whether `compliance_test.h` is needed :: It's not clear if this belongs in target directories, or if it is needed at all.
51
 
52
Generalize Makefile configuration :: At present each platform requires editing of the makefile, and many areas are not even fully parameterized.  Again we wish to explore a wider range of platforms before deciding what needs parameterization.  For now `COMPILE_TARGET` allows a choice between GCC and LLVM.  More generally, we know that with tools like _autotools_ and _cmake_ this is a well understood problem to solve.
53
 
54
Free up all registers for compliance testing :: At present some platforms have macros which use some registers in set up and verification, thus excluding them from compliance testing. We believe careful structuring of the macros will mean this problem can be avoided in the future, thus avoiding any registers being excluded from compliance testing.
55
 
56
=== Feedback and how to contribute
57
 
58
Comments on this document should be made through the RISC-V Compliance Task Group mailing list. Proposed changes may be submitted as git pull requests.
59
 
60
You are encouraged to contribute to this repository by submitting pull requests and by commenting on pull requests submitted by other people as described in the link:../README.md[`README.md`] file in the top level directory.
61
 
62
NOTE: Don't forget to add your own name to the list of contributors in the document.
63
 
64
==== AsciiDoc
65
 
66
This is a structured text format used by this document.  Simple usage should be fairly self evident.
67
 
68
* Comprehensive information on the format is on the http://www.methods.co.nz/asciidoc/[AsciiDoc website].
69
 
70
* Comprehensive information on the tooling on the https://asciidoctor.org/[AsciiDoctor website].
71
 
72
* You may find this https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/[cheat sheet] helpful.
73
 
74
==== Installing tools
75
 
76
To generate the documentation as HTML you need _asciidoctor_ and to generate as
77
PDF you need _asciidoctor-pdf_.
78
 
79
* These are the https://asciidoctor.org/docs/install-toolchain/[installation instructions for asciidoctor].
80
 
81
* These are the https://asciidoctor.org/docs/asciidoctor-pdf/#install-the-published-gem[installation instructions for asciidoctor-pdf].
82
 
83
To spell check you need _aspell_ installed.
84
 
85
==== Building the documentation
86
 
87
To build HTML:
88
[source,make]
89
----
90
make html
91
----
92
 
93
To build PDF:
94
[source,make]
95
----
96
make pdf
97
----
98
 
99
To build both:
100
[source,make]
101
----
102
make
103
----
104
 
105
To check the spelling (excludes any listing or code phrases):
106
[source,make]
107
----
108
make spell
109
----
110
 
111
Any custom words for spell checking should be added to link:./custom.wordlist[`custom.wordlist`].
112
 
113
=== Contributors
114
 
115
This document has been created by the following people (in alphabetical order of surname).
116
 
117
[quote]
118
Jeremy Bennett, Mary Bennett, Simon Davidmann, Radek Hajek, Lee Moore, Milan Nostersky, Marcela Zachariasova.
119
 
120
=== Document history
121
[cols="<1,<2,<3,<4",options="header,pagewidth",]
122
|================================================================================
123
| _Revision_ | _Date_            | _Author_ | _Modification_
124
| 1.10 Draft  | 20 June 2018      |
125
 
126
Simon Davidmann, Lee Moore |
127
 
128
Cleaned up description of updated framework and inclusion of riscvOVPsim.
129
 
130
| 1.9 Draft  | 12 June 2018      |
131
 
132
Jeremy Bennett |
133
 
134
Update Future work section to take account of Codasip changes. Remove diagrammatic directory structure.
135
 
136
| 1.8 Draft  | 12 June 2018      |
137
 
138
Jeremy Bennett |
139
 
140
Add Future work section.
141
 
142
| 1.7 Draft  | 12 June 2018      |
143
 
144
Jeremy Bennett |
145
 
146
Add CC license as an appendix.
147
 
148
| 1.6 Draft  | 10 June 2018      |
149
 
150
Jeremy Bennett |
151
 
152
Tidy up areas that are flawed in HTML version.
153
 
154
| 1.5 Draft  |  8 June 2018      |
155
 
156
Jeremy Bennett |
157
 
158
General tidy up.
159
 
160
| 1.4 Draft  |  8 June 2018      |
161
 
162
Jeremy Bennett |
163
 
164
Added license preamble.
165
 
166
| 1.3 Draft  |  5 June 2018      |
167
 
168
Simon Davidmann |
169
 
170
Updated to reflect directory structure and trace macros.
171
 
172
| 1.2 Draft  |  3 June 2018      |
173
 
174
Jeremy Bennett |
175
 
176
Converted to AsciiDoc, cleaned up and restructured.
177
 
178
| 1.1 Draft  |  1 June 2018      |
179
 
180
Simon Davidmann
181
Lee Moore |
182
 
183
Revised format and expand to describe framework, usage of many tests groups,
184
and different Targets
185
 
186
|1.0         | 24 December 2017  |
187
 
188
Radek Hajek
189
Milan Nostersky
190
Marcela Zachariasova |
191
 
192
First version of the document.
193
 
194
|================================================================================
195
 
196
== Overall structure
197
=== The compliance test
198
 
199
At the heart of the testing infrastructure is the detailed compliance test.  This is the RISC-V assembler code that is executed on the processor and that provides results in a defined memory area (the _signature_).  The test should only use the minimum of instructions and only those absolutely necessary.  It should only use instructions and registers from the ISA instruction set on which it is targeted.
200
 
201
=== The Test Virtual Machine
202
 
203
The test runs in the context of a _Test Virtual Machine_ (TVM) as defined and available at https://github.com/riscv/riscv-tests. There will be a different TVM for each instruction subset and each profile.
204
 
205
=== The target environment
206
 
207
A specific target will need to be chosen and setup to run the Test. This can be an Instruction Set Simulator (ISS), full system simulator (emulator), HDL simulator, FPGA prototype, or a board/chip, etc.  The test runs in the context of a TVM and is set up to run on the specific target.  The _target environment_ controls the loading of the test plus TVM onto the target, configures the device if needed, controls the execution, and then extracts the signature.
208
 
209
=== The processor configuration (device configuration)
210
 
211
The RISC-V specification allows many optional instructions, registers, and other features.  Many targets have a fixed selection of these optional items which cannot be changed. For example, a chip is fixed in the mask.  A simulator on the other hand may implement all known options and will need to be constrained to have only the required options available.  There will need to be processor configuration for those target devices which need to be constrained to only reflect the features of the device being compliance tested. This is essential when writing compliance tests to ensure that only available options are used in the tests.
212
 
213
=== The test signature
214
 
215
The _test signature_ is defined as reference data written into memory during the execution of the test.  It should record values and results of the operation of the Test.
216
 
217
=== The test reference signature
218
 
219
The _test reference signature_ is the _test signature_ saved from an execution run of the RISC‑V _golden model_.  This is currently from a RISC-V ISS, but the intention is that the RISC-V Formal Model from the RISCV.org Formal Working Group will be used when it is complete, functional, and available.
220
 
221
=== The test suites
222
 
223
Tests are grouped into different functional test suites targeting the different subsets of the full RISC-V specifications.  There will be ISA and privilege suites.
224
 
225
Currently there is one test suite: the RV32I (developed by Codasip).
226
 
227
Test suites will be developed in this priority order:
228
 
229
[options="compact"]
230
* RV32I
231
* RV64I
232
* RV32IM
233
* RV64IM
234
* RV32IC
235
* RV64IC
236
* RV32IA
237
* RV64IA
238
* RV32IF
239
* RV64IF
240
* RV32ID
241
* RV64ID
242
* RV32E
243
* RV32EC
244
* RV32EA
245
* RV32EF
246
* RV32ED
247
 
248
This order is subject to ratification by the Compliance Task Group
249
 
250
=== The test framework
251
 
252
This works at several levels.  At the lowest level it runs a test with a TVM on a specific configured target device and compares the test’s output test signature against the test reference signature and reports if there is any difference. A difference indicates that the target has failed that specific compliance test.
253
 
254
The test framework allows different test suites to be run depending on the capabilities of the target
255
 
256
The test framework collates the results of all the Tests that comprise a Test Suite and reports the overall results.
257
 
258
== Developing new tests
259
=== Structure
260
 
261
* Clone directory structure of an existing test suite alongside the RV32I tree.
262
 
263
* This must include test and reference signature directories (`src` and `references`).
264
 
265
* Check the target environment setup files.
266
 
267
* Check the processor configuration files.
268
 
269
=== Process
270
 
271
This description assumes the use of a configurable simulator with good trace and debug capabilities.
272
 
273
* Work on one test at a time.
274
 
275
* Ensure that the processor configuration is set appropriately.
276
 
277
* Use the `RVTEST` macros (defined in `compliance_io.h`) to make it easy to see the details of a Test’s execution. There are macros for assertions (`RVTEST_IO_ASSERT_GPR_EQ`) and tracing (`RVTEST_IO_WRITE_STR`) which are empty on targets that can not implement them.
278
 
279
* Assuming you are developing the test on a simulator, use the simulator’s tracing capabilities, especially a register change mode to single step your test examining all changing registers etc. to ensure your test is stimulating what is intending.
280
 
281
* Make sure that the signature you generate at the end of the run shows adequate internal test state such that any checks do report as fails if wrong.
282
 
283
* When you are satisfied that the test does what is intended and that the test signature is correct, copy this into a test reference signature (in the references directory).
284
 
285
For a test suite to be complete it needs to have tests that exercise the full functionality of what it is intended to test. There are tools available to measure instruction and other resource coverage. These should be used to ensure that 100% of the intended instructions have been tested.
286
 
287
== Test framework
288
 
289
For running compliance tests, the Test Virtual Machine (TVM) “p” available at https://github.com/riscv/riscv-tests is utilized.
290
 
291
In addition to using the basic functionality of the TVM, the script for running compliance tests runs the test on the target and then performs comparison of the target’s generated test signature to the manually reviewed test reference signature.
292
 
293
See the chapter below for selecting and setting up the target (simulator, or hardware, etc.).
294
 
295
If using a target that requires the processor to be configured, see the chapter below on processor configuration.
296
 
297
You will also need to have a suitable compiler tool chain (GCC or LLVM) installed in your environment and available on your path.
298
 
299
Tests are run by commands in the top level `Makefile` which has targets for simulate and verify
300
 
301
[source,make]
302
----
303
RISCV_TARGET ?= riscvOVPsim
304
RISCV_DEVICE ?= rv32i
305
RISCV_PREFIX ?= riscv64-unknown-elf-
306
 
307
simulate:
308
        make RISCV_TARGET=$(RISCV_TARGET) \
309
             RISCV_DEVICE=$(RISCV_DEVICE) \
310
             RISCV_PREFIX=$(RISCV_PREFIX) \
311
             run -C $(SUITEDIR)
312
 
313
verify:
314
    riscv-test-env/verify.sh
315
----
316
 
317
== Setting the target environment
318
 
319
The target environment needs setting up to allow the compliance tests to be run on the target.  This can be used while developing compliance test suites or it can be used with new targets to see if they correctly execute the compliance test suites and are compliant!
320
 
321
This chapter provides information on the currently available targets and includes a short tutorial on how to add a new target.
322
 
323
=== Imperas riscvOVPsim compliance simulator
324
 
325
For tracing the test the following  macros are defined in `riscv-target/riscvOVPsim/compliance_io.h`:
326
 
327
[source,make]
328
----
329
RVTEST_IO_INIT
330
RVTEST_IO_WRITE_STR(_STR)
331
RVTEST_IO_ASSERT_GPR_EQ(_R, _I)
332
----
333
 
334
An example of a test that uses the tracing macros is `riscv-test-suite/rv32i/ISA/src/I-IO.S`.
335
 
336
To configure the simulator for different target devices there needs to be a Makefile fragment in the `device` directory.
337
 
338
The Makefile fragment for RV32I is in `riscv-target/riscvOVPsim/device/rv32i`
339
 
340
In the top level Makefile there needs to be a selection for the target and device:
341
[source,make]
342
----
343
RISCV_TARGET?=riscvOVPsim
344
RISCV_DEVICE?=rv32i
345
----
346
 
347
The path to the RUN_TARGET is defined within the riscv-target Makefile.include.
348
 
349
 
350
=== Codasip ISA simulator
351
 
352
tbd
353
 
354
=== GNU CGEN ISS
355
==== Within GDB
356
 
357
tbd
358
 
359
==== Via GDB Remote Serial Protocol
360
 
361
tbd
362
 
363
=== Berkeley Spike ISA simulator
364
For spike the file `riscv-target/spike/compliance_io.h` has the trace macros defined as empty.  The Makefile fragment in `riscv-target/spike/device/rv32i` has the spike run command for the RV32I device.
365
 
366
=== SiFive Freedom Unleashed 540 board (tbd)
367
 
368
tbd
369
 
370
=== Verilator Verilog RI5CY RTL processor
371
==== With GDB Server
372
 
373
tbd
374
 
375
==== With testbench monitor
376
 
377
tbd
378
 
379
=== Adding a new Target
380
 
381
In this section, a short tutorial how to add a user target in the TVM is provided.
382
 
383
If you do not want to use the TVM at all, it is recommended to just take the tests and references and incorporate them into your testing environment.  The only requirement needed in this case is that there must be an option to dump the results from the target in the test environment so as the comparison to test reference signature is possible.
384
 
385
The following steps demonstrate an example in which a target was replaced by Codasip ISA simulator. In a similar way, any RISC-V ISA simulator or any RTL simulation model of the RISC-V processor can be connected.
386
 
387
* Redefine macros in `ISA/src/compliance_test.h` and `binary_coding/src/compliance_test.h`.
388
+
389
For example, to support Codasip ISA simulator as Target, it was necessary to redefine `RV_COMPLIANCE_HALT macro`, `RV_COMPLIANCE_DATA_BEGIN` macro and `RV_COMPLIANCE_DATA_END` macro in `ISA/compliance_test.h` in the following way:
390
+
391
[source,c]
392
----
393
#define RV_COMPLIANCE_HALT
394
        add     x31, x0, 1
395
        sw      x31, codasip_syscall, t0
396
----
397
 
398
* This means that on the address defined by `codasip_syscall`, the 1 value is stored and this is interpreted as `HALT` for the Codasip ISA simulator.
399
+
400
[source,c]
401
----
402
#define RV_COMPLIANCE_DATA_BEGIN
403
        .align  4;
404
        .global codasip_signature_start;
405
codasip_signature_start:
406
----
407
+
408
[source,c]
409
----
410
#define RV_COMPLIANCE_DATA_END
411
        .align  4;
412
        .global codasip_signature_end;
413
codasip_signature_end:
414
----
415
 
416
* The Codasip ISA simulator dumps data from the addresses bounded by labels `codasip_signature_start` and `codasip_signature_end` to `stdout`.  The dumped data represent the results of the tests.
417
 
418
* Modify Makefiles in `ISA/Makefile` and `binary_coding/Makefile`.  It is important to change tools that are evaluated and parameters that are passed to the tools.
419
+
420
For example, to support the Codasip ISA simulator as the device under test
421
(DUT), it was necessary to change `RISCV_SIM` from `spike` to
422
`codix_berkelium-ia-isimulator –r` and parameters for running the simulator
423
from `+signature=$(work_dir)/$<_signature.output` to `–info 5` plus handle
424
redirection to a file by `1>$(work_dir)/$<_signature.output`.
425
 
426
== Configuring the target device
427
 
428
This section is for how to specify which optional parts are being used
429
 
430
NOTE: This is primarily for simulators.
431
 
432
In the directory `riscv-target/*/device` there are directories that have Makefile fragments that configure the simulator to simulate only those parts of the RISC-V specification that is required for the specific target device being tested.
433
 
434
For example for the riscvOVPsim to be configured to be a RV32I
435
[source,make]
436
----
437
RUN_TARGET= \
438
        riscvOVPsim.exe --variant RV32I --program $(work_dir_isa)/$< \
439
            --signaturedump \
440
            --override riscvOVPsim/cpu/sigdump/SignatureFile=$(work_dir_isa)/$(*)_signature.output \
441
            --override riscvOVPsim/cpu/sigdump/ResultReg=3 \
442
            --override riscvOVPsim/cpu/simulateexceptions=T \
443
            --logfile $(work_dir_isa)/$@
444
----
445
[appendix]
446
== One ISA Test
447
 
448
For a detailed description of one ISA test please have a look at the example: link:../riscv-test-suite/rv32i/src/I-IO.S[`I-IO.S`].
449
 
450
This includes use of all the logging and assertion macros and shows how a test is split into sections.
451
 
452
[appendix]
453
== Repository structure
454
 
455
The top level directory contains a `README.md` file giving an overview of the project, top level `Makefile`, `ChangeLog`, the `verify.sh` script and complete license files for the Creative Commons and BSD licenses used by the task group.  There are then four top level directories.
456
 
457
`doc`:: All the documentation for the project, written using _AsciiDoc_.
458
 
459
`riscv-target`:: Contains a further subdirectory for each target, within which are placed the `compliance_io.h` header for that target and a `device` directory for all the devices of that target.
460
 
461
`riscv-test-env`:: This contains headers common to all environments, and then a directory for each TVM variant, with `link.ld` linker script and `riscv_test.h` header.
462
 
463
`riscv-test-suite`:: This contains a subdirectory for each instruction set or instruction set extension.  Within each subdirectory the source code and reference output for each test are in the `ISA` directory.
464
 
465
`riscv-ovpsim`:: This contains a copy of the Imperas OVP riscvOVPsim simulator for use in compliance testing. It includes a subdirectory of examples with pre-compiled .elf files and has binaries of the simulator for Linux64 and Windows64. This is referenced by the makefiles for developing and running the compliance suites. riscvOVPsim can run all the tracing and assertion macros used in the tests.
466
 
467
[appendix]
468
== Creative Commons Attribution 4.0 International License
469
 
470
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
471
 
472
=== Using Creative Commons Public Licenses
473
 
474
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
475
 
476
[horizontal]
477
*Considerations for licensors*:: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright.  https://wiki.creativecommons.org/wiki/Considerations_for_licensors_and_licensees#Considerations_for_licensors[More considerations for licensors].
478
 
479
*Considerations for the public*:: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor's permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable.  https://wiki.creativecommons.org/Considerations_for_licensors_and_licensees#Considerations_for_licensees[More considerations for the public].
480
 
481
[[app_cc_by_4.0]]
482
=== Creative Commons Attribution 4.0 International Public License
483
 
484
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
485
 
486
:numbered!:
487
==== Section 1--Definitions.
488
 
489
a. *Adapted Material* means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
490
 
491
b. *Adapter's License* means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
492
 
493
c. *Copyright and Similar Rights* means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
494
 
495
d. *Effective Technological Measures* means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
496
 
497
e. *Exceptions and Limitations* means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
498
 
499
f. *Licensed Material* means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
500
 
501
g. *Licensed Rights* means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
502
 
503
h. *Licensor* means the individual(s) or entity(ies) granting rights under this Public License.
504
 
505
i. *Share* means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
506
 
507
j. *Sui Generis Database Rights* means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
508
 
509
k. *You* means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
510
 
511
==== Section 2 – Scope
512
 
513
a. *License grant*.
514
   1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
515
      A. reproduce and Share the Licensed Material, in whole or in part; and
516
      B. produce, reproduce, and Share Adapted Material.
517
   2. _Exceptions and Limitations_. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
518
   3. _Term_. The term of this Public License is specified in Section 6(a).
519
   4. _Media and formats; technical modifications allowed_. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
520
   5. _Downstream recipients_.
521
      A. _Offer from the Licensor – Licensed Material_. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
522
      B. _No downstream restrictions_. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
523
   6. _No endorsement_. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
524
 
525
b. *Other rights*.
526
   1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
527
   2. Patent and trademark rights are not licensed under this Public License.
528
   3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
529
 
530
==== Section 3 -- License Conditions.
531
 
532
Your exercise of the Licensed Rights is expressly made subject to the
533
following conditions.
534
 
535
a. Attribution.
536
   1. If You Share the Licensed Material (including in modified form), You must:
537
      A. retain the following if it is supplied by the Licensor with the Licensed Material:
538
         i) identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
539
         ii) a copyright notice;
540
         iii) notice that refers to this Public License;
541
         iv) a notice that refers to the disclaimer of warranties;
542
         v) a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
543
      B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
544
      C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
545
   2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
546
   3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
547
   4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
548
 
549
==== Section 4 -- Sui Generis Database Rights.
550
 
551
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
552
 
553
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
554
 
555
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
556
 
557
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
558
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
559
 
560
==== Section 5 -- Disclaimer of Warranties and Limitation of Liability.
561
 
562
a. *Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.*
563
 
564
b. *To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.*
565
 
566
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
567
 
568
==== Section 6 -- Term and Termination.
569
 
570
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
571
 
572
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
573
   1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
574
   2. upon express reinstatement by the Licensor.
575
 
576
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
577
 
578
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
579
Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
580
 
581
==== Section 7 -- Other Terms and Conditions.
582
 
583
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
584
 
585
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
586
 
587
==== Section 8 -- Interpretation.
588
 
589
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
590
 
591
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
592
 
593
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
594
 
595
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
596
 
597
=== Supplementary
598
 
599
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” The text of the Creative Commons public licenses is dedicated to the public domain under the https://creativecommons.org/publicdomain/zero/1.0/legalcode[CC0 Public Domain Dedication]. Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at https://creativecommons.org/policies[creativecommons.org/policies], Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
600
 
601
Creative Commons may be contacted at https://creativecommons.org/[creativecommons.org].

powered by: WebSVN 2.1.0

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