URL
https://opencores.org/ocsvn/ft816float/ft816float/trunk
Show entire file |
Details |
Blame |
View Log
Rev 48 |
Rev 49 |
Line 22... |
Line 22... |
//
|
//
|
// ============================================================================
|
// ============================================================================
|
//
|
//
|
package fp;
|
package fp;
|
|
|
|
`ifndef FPWID
|
|
`define FPWID 64
|
|
`endif
|
|
|
`define QINFOS 23'h7FC000 // info
|
`define QINFOS 23'h7FC000 // info
|
`define QSUBINF 4'd1
|
`define QSUBINF 4'd1
|
`define QINFDIV 4'd2
|
`define QINFDIV 4'd2
|
`define QZEROZERO 4'd3
|
`define QZEROZERO 4'd3
|
`define QINFZERO 4'd4
|
`define QINFZERO 4'd4
|
Line 77... |
Line 81... |
`define CIN 3'd2
|
`define CIN 3'd2
|
`define RES 3'd3
|
`define RES 3'd3
|
`define POINT5 3'd4
|
`define POINT5 3'd4
|
`define ZERO 3'd5
|
`define ZERO 3'd5
|
|
|
|
`define SUPPORT_DENORMALS 1'b1
|
`define MIN_LATENCY 1'b1
|
`define MIN_LATENCY 1'b1
|
parameter FPWID = 64;
|
|
|
parameter FPWID = `FPWID;
|
|
|
// This file contains defintions for fields to ease dealing with different fp
|
// This file contains defintions for fields to ease dealing with different fp
|
// widths. Some of the code still needs to be modified to support widths
|
// widths. Some of the code still needs to be modified to support widths
|
// other than standard 32,64 or 80 bit.
|
// other than standard 32,64 or 80 bit.
|
localparam MSB = FPWID-1;
|
localparam MSB = FPWID-1;
|
localparam EMSB = FPWID==128 ? 14 :
|
localparam EMSB = FPWID==128 ? 14 :
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.