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

Subversion Repositories fpuvhdl

[/] [fpuvhdl/] [trunk/] [fpuvhdl/] [adder/] [fpadd_stage6_struct.vhd] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 gmarcus
-- VHDL Entity work.FPadd_stage6.interface
2 3 gmarcus
--
3
-- Created by
4
-- Guillermo Marcus, gmarcus@ieee.org
5
-- using Mentor Graphics FPGA Advantage tools.
6
--
7
-- Visit "http://fpga.mty.itesm.mx" for more info.
8
--
9
-- 2003-2004. V1.0
10
--
11
 
12
LIBRARY ieee;
13
USE ieee.std_logic_1164.all;
14
USE ieee.std_logic_arith.all;
15
 
16
ENTITY FPadd_stage6 IS
17
   PORT(
18
      OV        : IN     std_logic;
19
      SIG_norm2 : IN     std_logic_vector (27 DOWNTO 0);
20
      Z_EXP     : IN     std_logic_vector (7 DOWNTO 0);
21
      Z_SIGN    : IN     std_logic;
22
      clk       : IN     std_logic;
23
      isINF_tab : IN     std_logic;
24
      isNaN     : IN     std_logic;
25
      isZ_tab   : IN     std_logic;
26
      zero      : IN     std_logic;
27
      FP_Z      : OUT    std_logic_vector (31 DOWNTO 0)
28
   );
29
 
30
-- Declarations
31
 
32
END FPadd_stage6 ;
33
 
34
--
35 4 gmarcus
-- VHDL Architecture work.FPadd_stage6.struct
36 3 gmarcus
--
37
-- Created by
38
-- Guillermo Marcus, gmarcus@ieee.org
39
-- using Mentor Graphics FPGA Advantage tools.
40
--
41
-- Visit "http://fpga.mty.itesm.mx" for more info.
42
--
43
-- Copyright 2003-2004. V1.0
44
--
45
 
46
 
47
LIBRARY ieee;
48
USE ieee.std_logic_1164.all;
49
USE ieee.std_logic_arith.all;
50
 
51
ARCHITECTURE struct OF FPadd_stage6 IS
52
 
53
   -- Architecture declarations
54
 
55
   -- Internal signal declarations
56
   SIGNAL EXP_isINF : std_logic;
57
   SIGNAL FP_Z_int  : std_logic_vector(31 DOWNTO 0);
58
   SIGNAL Z_SIG     : std_logic_vector(22 DOWNTO 0);
59
   SIGNAL isINF     : std_logic;
60
   SIGNAL isZ       : std_logic;
61
 
62
 
63
   -- Component Declarations
64
   COMPONENT PackFP
65
   PORT (
66
      SIGN  : IN     std_logic ;
67
      EXP   : IN     std_logic_vector (7 DOWNTO 0);
68
      SIG   : IN     std_logic_vector (22 DOWNTO 0);
69
      isNaN : IN     std_logic ;
70
      isINF : IN     std_logic ;
71
      isZ   : IN     std_logic ;
72
      FP    : OUT    std_logic_vector (31 DOWNTO 0)
73
   );
74
   END COMPONENT;
75
 
76
   -- Optional embedded configurations
77
   -- pragma synthesis_off
78 4 gmarcus
   FOR ALL : PackFP USE ENTITY work.PackFP;
79 3 gmarcus
   -- pragma synthesis_on
80
 
81
 
82
BEGIN
83
   -- Architecture concurrent statements
84
   -- HDL Embedded Text Block 1 eb1
85
   --reg1 1
86
   PROCESS(clk)
87
   BEGIN
88
      IF RISING_EDGE(clk) THEN
89
         FP_Z <= FP_Z_int;
90
      END IF;
91
   END PROCESS;
92
 
93
   -- HDL Embedded Text Block 2 eb2
94
   -- eb2 2
95
   Z_SIG <= SIG_norm2(25 DOWNTO 3);
96
 
97
   -- HDL Embedded Text Block 9 eb7
98
   -- eb7 9
99
   EXP_isINF <= '1' WHEN (OV='1' OR Z_EXP=X"FF") ELSE '0';
100
 
101
 
102
   -- ModuleWare code(v1.1) for instance 'I7' of 'or'
103
   isINF <= EXP_isINF OR isINF_tab;
104
 
105
   -- ModuleWare code(v1.1) for instance 'I17' of 'or'
106
   isZ <= zero OR isZ_tab;
107
 
108
   -- Instance port mappings.
109
   I2 : PackFP
110
      PORT MAP (
111
         SIGN  => Z_SIGN,
112
         EXP   => Z_EXP,
113
         SIG   => Z_SIG,
114
         isNaN => isNaN,
115
         isINF => isINF,
116
         isZ   => isZ,
117
         FP    => FP_Z_int
118
      );
119
 
120
END struct;

powered by: WebSVN 2.1.0

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