⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fpu_core.vhd

📁 ARM7的源代码
💻 VHD
字号:
------------------------------------------------------------------------------  This file is a part of the LEON VHDL model--  Copyright (C) 1999  European Space Agency (ESA)----  This library is free software; you can redistribute it and/or--  modify it under the terms of the GNU Lesser General Public--  License as published by the Free Software Foundation; either--  version 2 of the License, or (at your option) any later version.----  See the file COPYING.LGPL for the full details of the license.------------------------------------------------------------------------------- Entity: 	fpu_core-- File:	fpu_core.vhd-- Author:	Jiri Gaisler - Gaisler Research-- Description:	Wrapper around Meiko compatible FPU cores------------------------------------------------------------------------------library IEEE;use IEEE.std_logic_1164.all;use work.leon_target.all;use work.leon_config.all;use work.leon_iface.all;use work.fpulib.all;entity fpu_core isport (    clk    : in  clk_type;			-- main clock	    fpui   : in  fpu_in_type;    fpuo   : out fpu_out_type  );end;architecture rtl of fpu_core isbegin  meiko0 : if FPCORE = meiko generate    fpu0 : fpu port map (    ss_clock   => clk,    FpInst     => fpui.FpInst,     FpOp       => fpui.fpop,     FpLd       => fpui.FpLd,     Reset      => fpui.reset,     fprf_dout1 => fpui.fprf_dout1,     fprf_dout2 => fpui.fprf_dout2,     RoundingMode => fpui.RoundingMode,     FpBusy    => fpuo.FpBusy,    FracResult => fpuo.FracResult,    ExpResult  => fpuo.ExpResult,    SignResult => fpuo.SignResult,    SNnotDB    => fpuo.SNnotDB,    Excep      => fpuo.Excep,    ConditionCodes => fpuo.ConditionCodes,    ss_scan_mode => fpui.ss_scan_mode,    fp_ctl_scan_in => fpui.fp_ctl_scan_in,    fp_ctl_scan_out => fpuo.fp_ctl_scan_out   );  end generate;  lth0 : if FPCORE = lth generate    fpu0 : fpu_lth port map (    ss_clock   => clk,    FpInst     => fpui.FpInst,     FpOp       => fpui.fpop,     FpLd       => fpui.FpLd,     Reset      => fpui.reset,     fprf_dout1 => fpui.fprf_dout1,     fprf_dout2 => fpui.fprf_dout2,     RoundingMode => fpui.RoundingMode,     FpBusy    => fpuo.FpBusy,    FracResult => fpuo.FracResult,    ExpResult  => fpuo.ExpResult,    SignResult => fpuo.SignResult,    SNnotDB    => fpuo.SNnotDB,    Excep      => fpuo.Excep,    ConditionCodes => fpuo.ConditionCodes,    ss_scan_mode => fpui.ss_scan_mode,    fp_ctl_scan_in => fpui.fp_ctl_scan_in,    fp_ctl_scan_out => fpuo.fp_ctl_scan_out   );  end generate;end;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -