geq.vhd
来自「DLX CPU VHDL CODE UNIVERSITY」· VHDL 代码 · 共 25 行
VHD
25 行
library IEEE;use STD.textio.all;use IEEE.std_logic_1164.all;use work.dp32_types.all;entity geq is generic(width: positive); port(a,b :in bit_vector(width-1 downto 0); y: out bit);end geq;architecture struture of geq isbeginmain : process(a,b)begin--wait for 1 ns;if(bits_to_uint(a)<bits_to_uint(b))then y<='0';else y<='1';end if;end process;end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?