URL
https://opencores.org/ocsvn/ecg/ecg/trunk
[/] [ecg/] [trunk/] [rtl/] [inc.v] - Blame information for rev 13
Go to most recent revision |
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
2 |
homer.xing |
/*
|
2 |
|
|
Copyright 2011, City University of Hong Kong
|
3 |
|
|
Author is Homer (Dongsheng) Xing.
|
4 |
|
|
|
5 |
|
|
This file is part of Tate Bilinear Pairing Core.
|
6 |
|
|
|
7 |
|
|
Tate Bilinear Pairing Core is free software: you can redistribute it and/or modify
|
8 |
|
|
it under the terms of the GNU Lesser General Public License as published by
|
9 |
|
|
the Free Software Foundation, either version 3 of the License, or
|
10 |
|
|
(at your option) any later version.
|
11 |
|
|
|
12 |
|
|
Tate Bilinear Pairing Core is distributed in the hope that it will be useful,
|
13 |
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14 |
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15 |
|
|
GNU Lesser General Public License for more details.
|
16 |
|
|
|
17 |
|
|
You should have received a copy of the GNU General Public License
|
18 |
|
|
along with Foobar. If not, see http://www.gnu.org/licenses/lgpl.txt
|
19 |
|
|
*/
|
20 |
|
|
|
21 |
|
|
// drop def & const here :D
|
22 |
|
|
|
23 |
|
|
`define M 97 // M is the degree of the irreducible polynomial
|
24 |
|
|
`define WIDTH (2*`M-1) // width for a GF(3^M) element
|
25 |
|
|
`define W2 (4*`M-1) // width for a GF(3^{2*M}) element
|
26 |
|
|
`define W3 (6*`M-1) // width for a GF(3^{3*M}) element
|
27 |
|
|
`define W6 (12*`M-1) // width for a GF(3^{6*M}) element
|
28 |
|
|
`define PX 196'h4000000000000000000000000000000000000000001000002 // PX is the irreducible polynomial
|
29 |
6 |
homer.xing |
`define SCALAR_WIDTH (151-1) // the width for the scalar value
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.