这些小活动你都参加了吗?快来围观一下吧!>>
电子产品世界 » 论坛首页 » 高校专区 » 周师电子设计创新社区 » 3-5

共1条 1/1 1 跳转至

3-5

菜鸟
2014-10-30 22:30:05     打赏
 

3-5

解(1):条件赋值语句

- 38译码器设计(条件赋值语句实现)

   c11" => DOUT<="0010";

          WHEN "0010" => DOUT<="0011";

          WHEN "0110" => DOUT<="0100";

          WHEN "0111" => DOUT<="0101";

          WHEN "0101" => DOUT<="0110";

          WHEN "0100" => DOUT<="0111";

          WHEN "1100" => DOUT<="1000";

          WHEN "1101" => DOUT<="1001";

          WHEN "1111" => DOUT<="1010";

          WHEN "1110" => DOUT<="1011";

          WHEN "1010" => DOUT<="1100";

          WHEN "1011" => DOUT<="1101";

          WHEN "1001" => DOUT<="1110";

          WHEN "1000" => DOUT<="1111";

          WHEN OTHERS => NULL;

        END CASE;

      END PROCESS;

    END BEHEAVE;


共1条 1/1 1 跳转至

回复

匿名不能发帖!请先 [ 登陆 注册 ]