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

Subversion Repositories pairing

[/] [pairing/] [trunk/] [rtl/] [inc.v] - Blame information for rev 32

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 homer.xing
/*
2
    Copyright 2011, City University of Hong Kong
3 32 homer.xing
    Author is Homer (Dongsheng) Hsing.
4 24 homer.xing
 
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 31 homer.xing
    You should have received a copy of the GNU Lesser General Public License
18 30 homer.xing
    along with Tate Bilinear Pairing Core.  If not, see http://www.gnu.org/licenses/lgpl.txt
19 24 homer.xing
*/
20
 
21 30 homer.xing
`default_nettype none
22
 
23 2 homer.xing
// drop def & const here :D
24
 
25 3 homer.xing
`define M     97          // M is the degree of the irreducible polynomial
26
`define WIDTH (2*`M-1)    // width for a GF(3^M) element
27
`define W2    (4*`M-1)    // width for a GF(3^{2*M}) element
28
`define W3    (6*`M-1)    // width for a GF(3^{3*M}) element
29
`define W6    (12*`M-1)   // width for a GF(3^{6*M}) element
30
`define PX    196'h4000000000000000000000000000000000000000001000002 // PX is the irreducible polynomial
31
 

powered by: WebSVN 2.1.0

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