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

📄 mant_ext.vhd

📁 DLX CPU VHDL CODE UNIVERSITY
💻 VHD
字号:
library IEEE;use STD.textio.all;use IEEE.std_logic_1164.all;use work.dp32_types.all;entity mant_ext is    generic(width: positive);    port(a :in bit_vector(width-1 downto 0);         y: out bit_vector(width-1 downto 0));end mant_ext;architecture behaviour of mant_ext isbeginmain : process(a)begin	--wait for 1 ns;	y<=a;	y(width-1)<='1';end process;end behaviour;entity mant_cut is    generic(width: positive);    port(a :in bit_vector(width-1 downto 0);         y: out bit_vector(width-5 downto 0));end mant_cut;architecture behaviour of mant_cut isbeginmain : process (a)begin--wait for 1 ns;y<=a(width-2 downto 3);end process;end behaviour;

⌨️ 快捷键说明

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