Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

VHDLにおけるIF文

count: process(clock)
  begin
    if rising_edge(clock) then
      if switch1 =1then
        if switch2 =1then
          output_signal <=1;
        else
          output_signal <=0;
        end if;
      end if;
  end if;
end process;