comp.vhd
来自「直流电机的VHDL源程序,经过编译和仿真.」· VHDL 代码 · 共 20 行
VHD
20 行
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity comp is
port( d:in std_logic_vector(9 downto 0);
f_pwm:in std_logic_vector(9 downto 0);
w_pwm:out std_logic);
end comp;
architecture arc of comp is
begin
process(d,f_pwm)
begin
if f_pwm<=d then
w_pwm<='1';
else
w_pwm<='0';
end if;
end process;
end arc;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?