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

Subversion Repositories fpuvhdl

[/] [fpuvhdl/] [trunk/] [fpuvhdl/] [multiplier/] [fpmul_stage3_struct.vhd] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 3 gmarcus
-- VHDL Entity HAVOC.FPmul_stage3.interface
2
--
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 FPmul_stage3 IS
17
   PORT(
18
      EXP_in          : IN     std_logic_vector (7 DOWNTO 0);
19
      EXP_neg_stage2  : IN     std_logic;
20
      EXP_pos_stage2  : IN     std_logic;
21
      SIGN_out_stage2 : IN     std_logic;
22
      SIG_in          : IN     std_logic_vector (27 DOWNTO 0);
23
      clk             : IN     std_logic;
24
      isINF_stage2    : IN     std_logic;
25
      isNaN_stage2    : IN     std_logic;
26
      isZ_tab_stage2  : IN     std_logic;
27
      EXP_neg         : OUT    std_logic;
28
      EXP_out_round   : OUT    std_logic_vector (7 DOWNTO 0);
29
      EXP_pos         : OUT    std_logic;
30
      SIGN_out        : OUT    std_logic;
31
      SIG_out_round   : OUT    std_logic_vector (27 DOWNTO 0);
32
      isINF_tab       : OUT    std_logic;
33
      isNaN           : OUT    std_logic;
34
      isZ_tab         : OUT    std_logic
35
   );
36
 
37
-- Declarations
38
 
39
END FPmul_stage3 ;
40
 
41
--
42
-- VHDL Architecture HAVOC.FPmul_stage3.struct
43
--
44
-- Created by
45
-- Guillermo Marcus, gmarcus@ieee.org
46
-- using Mentor Graphics FPGA Advantage tools.
47
--
48
-- Visit "http://fpga.mty.itesm.mx" for more info.
49
--
50
-- Copyright 2003-2004. V1.0
51
--
52
 
53
 
54
LIBRARY ieee;
55
USE ieee.std_logic_1164.all;
56
USE ieee.std_logic_arith.all;
57
 
58
ARCHITECTURE struct OF FPmul_stage3 IS
59
 
60
   -- Architecture declarations
61
 
62
   -- Internal signal declarations
63
   SIGNAL EXP_out      : std_logic_vector(7 DOWNTO 0);
64
   SIGNAL EXP_out_norm : std_logic_vector(7 DOWNTO 0);
65
   SIGNAL SIG_out      : std_logic_vector(27 DOWNTO 0);
66
   SIGNAL SIG_out_norm : std_logic_vector(27 DOWNTO 0);
67
 
68
 
69
   -- Component Declarations
70
   COMPONENT FPnormalize
71
   GENERIC (
72
      SIG_width : integer := 28
73
   );
74
   PORT (
75
      SIG_in  : IN     std_logic_vector (SIG_width-1 DOWNTO 0);
76
      EXP_in  : IN     std_logic_vector (7 DOWNTO 0);
77
      SIG_out : OUT    std_logic_vector (SIG_width-1 DOWNTO 0);
78
      EXP_out : OUT    std_logic_vector (7 DOWNTO 0)
79
   );
80
   END COMPONENT;
81
   COMPONENT FPround
82
   GENERIC (
83
      SIG_width : integer := 28
84
   );
85
   PORT (
86
      SIG_in  : IN     std_logic_vector (SIG_width-1 DOWNTO 0);
87
      EXP_in  : IN     std_logic_vector (7 DOWNTO 0);
88
      SIG_out : OUT    std_logic_vector (SIG_width-1 DOWNTO 0);
89
      EXP_out : OUT    std_logic_vector (7 DOWNTO 0)
90
   );
91
   END COMPONENT;
92
 
93
   -- Optional embedded configurations
94
   -- pragma synthesis_off
95 4 gmarcus
   FOR ALL : FPnormalize USE ENTITY work.FPnormalize;
96
   FOR ALL : FPround USE ENTITY work.FPround;
97 3 gmarcus
   -- pragma synthesis_on
98
 
99
 
100
BEGIN
101
   -- Architecture concurrent statements
102
   -- HDL Embedded Text Block 1 latch
103
   -- latch 1
104
   PROCESS(clk)
105
   BEGIN
106
      IF RISING_EDGE(clk) THEN
107
         EXP_out_round <= EXP_out;
108
         SIG_out_round <= SIG_out;
109
      END IF;
110
   END PROCESS;
111
 
112
   -- HDL Embedded Text Block 2 latch2
113
   -- latch2 2
114
   PROCESS(clk)
115
   BEGIN
116
      IF RISING_EDGE(clk) THEN
117
         isINF_tab <= isINF_stage2;
118
         isNaN <= isNaN_stage2;
119
         isZ_tab <= isZ_tab_stage2;
120
         SIGN_out <= SIGN_out_stage2;
121
         EXP_pos <= EXP_pos_stage2;
122
         EXP_neg <= EXP_neg_stage2;
123
      END IF;
124
   END PROCESS;
125
 
126
 
127
   -- Instance port mappings.
128
   I9 : FPnormalize
129
      GENERIC MAP (
130
         SIG_width => 28
131
      )
132
      PORT MAP (
133
         SIG_in  => SIG_in,
134
         EXP_in  => EXP_in,
135
         SIG_out => SIG_out_norm,
136
         EXP_out => EXP_out_norm
137
      );
138
   I11 : FPround
139
      GENERIC MAP (
140
         SIG_width => 28
141
      )
142
      PORT MAP (
143
         SIG_in  => SIG_out_norm,
144
         EXP_in  => EXP_out_norm,
145
         SIG_out => SIG_out,
146
         EXP_out => EXP_out
147
      );
148
 
149
END struct;

powered by: WebSVN 2.1.0

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