control_stmts.vhd

来自「服务器的的板在载控制器的AHDL程序,包括原理图编译,用在EPM7128上(CP」· VHDL 代码 · 共 19 行

VHD
19
字号
library ieee;
use ieee.std_logic_1164.all;
entity control_stmts is
    port(a,b,c: in boolean;
         output: out boolean);
end control_stmts;
architecture example of control_stmts is
begin
 process(a,b,c)
   variable n:boolean;
 begin
   if a then n:=b;
   else
      n:=c;
   end if;
  output<=n;
 end process;
end example;

⌨️ 快捷键说明

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