📄 mult_ax.vhd
字号:
-- hds header_start
--
-- VHDL Architecture FPdivider24.mult_ax.untitled
--
-- Created:
-- by - kenboy.UNKNOWN (IBM-BVE1KE4DQ5P)
-- at - 16:15:52 2003/12/02
--
-- Generated by Mentor Graphics' HDL Designer(TM) 2001.5 (Build 170)
--
-- hds header_end
LIBRARY ieee;
USE ieee.std_logic_1164.all;
USE ieee.std_logic_arith.all;
ENTITY mult_ax IS
PORT(
in_a : IN std_logic_vector (23 DOWNTO 0);
in_x : IN std_logic_vector (7 DOWNTO 0);
result_ax : OUT std_logic_vector (29 DOWNTO 0)
);
-- Declarations
END mult_ax ;
-- hds interface_end
ARCHITECTURE untitled OF mult_ax IS
signal tmp:std_logic_vector(32 downto 0);
signal tmp_x:std_logic_vector(8 downto 0);
BEGIN
tmp_x<='0'&in_x;
tmp<=unsigned(in_a)*unsigned(tmp_x);
result_ax<=tmp(31 downto 2);
END untitled;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -