桑珠欢穆
VHDL编写"111010101 "序列发生器流水灯显示的实现,原代码如下(仿真结果见图)
LIBRARY ieee;
use ;
use ;
use ;
entity sequencer is --11101010--
port(clk : in std_logic;
rst : in std_logic;
seq : out std_logic);
end sequencer;
architecture arch of sequencer is
type state_type is (S0,S1,S2,S3,S4,S5,S6,S7);
signal state : state_type;
begin
P1 : process(clk,rst)
begin
if rst='0' then
state <= S0;
elsif clk'event and clk = '1' then
if state <= S0 then
state <= S1;
elsif state <= S1 then
state <= S2;
elsif state <= S2 then
state <= S3;
elsif state <= S3 then
state <= S4;
elsif state <= S4 then
state <= S5;
elsif state <= S5 then
state <= S6;
elsif state <= S6 then
state <= S7;
elsif state <= S7 then
state <= S0;
else
state <= S0;
end if;
end if;
end process P1;
P2 : process(clk,rst) --11101010--
begin
if rst='0' then
seq <= '0';
elsif clk'event and clk='1' then
case state is
when S0=>
seq <= '1';
when S1=>
seq <= '1';
when S2=>
seq <= '1';
when S3=>
seq <= '0';
when S4=>
seq <= '1';
when S5=>
seq <= '0';
when S6=>
seq <= '1';
when S7=>
seq <= '0';
when others=>NULL;
end case;
end if;
end process P2;
end arch;
天下没有免费的午餐
可以提高大脑与身体的协调能力,增强臂力,锻炼身体,在游戏的同时学着思考,简单的游戏还可以让孩子性格更加活泼。 1、打地鼠 下蹲运动能很
Since the introduction of computer-chip technology in society, in every field in
VHDL编写"111010101 "序列发生器流水灯显示的实现,原代码如下(仿真结果见图) LIBRARY ieee; use ieee.std_logic_1
随着半导体照明技术的发展和城市亮化工程要求的不断提高,利用LED灯照明和装饰成了发展的必然趋势。(1) Along with the constant impr