quantmux.vhd

来自「PictureBrowser 是基于Altera 的DE2 开发板设计图像浏览器」· VHDL 代码 · 共 38 行

VHD
38
字号
----------------------------------------------------------------------------------- quantmux.vhd---- Modified 4/27/2007-- Ian Roth-------------------------------------------------------------------------------library ieee;use ieee.std_logic_1164.all;use IEEE.std_logic_arith.all;        entity quantmux is  port (	input : in signed(31 downto 0);	dequant : in signed(31 downto 0);	output : out signed(31 downto 0)  );end quantmux;architecture behavior of quantmux is  signal temp : signed(31 downto 0);  signal multi : signed (63 downto 0);begin  multi <= (input * dequant);  temp <= multi(31 downto 0);  with dequant select	output <= input when "00000000000000000000000000000001",		      temp when others;		end behavior;

⌨️ 快捷键说明

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