tsc.vhd

来自「简单的数字频率计」· VHDL 代码 · 共 21 行

VHD
21
字号
library ieee;
use IEEE.std_logic_1164.all;
use IEEE.std_logic_arith.all;

entity tsc is
port(a:in unsigned(3 downto 0);
     b:out unsigned(1 downto 0));
end tsc;

architecture tsc_arch of tsc is
begin
  process
  variable tp:unsigned;
	begin
	tp:=a;
	tp:=tp/4;
    b<=tp;
	end process;
end tsc_arch;
    

⌨️ 快捷键说明

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