VHDL编程求助:the following signal(s) form a combinatorial loop
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/09/20 08:57:13
VHDL编程求助:the following signal(s) form a combinatorial loop
这是我的代码:目的是让数码管按照a>ab>b>bc>c>cd>d>de>e>ef>f>fa 循环发亮.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL,IEEE.numeric_std.all;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity first is
port( clk:in std_logic;
\x05\x05stop:in std_logic;
\x05\x05dout:out std_logic_vector(5 downto 0));\x05\x05
end first;
architecture Behavioral of first is
\x05constant clk_freq :integer := 50000000;
\x05constant scan_clk_freq :integer := 1000;
\x05constant clk_divisor :integer :=clk_freq/scan_clk_freq ;
\x05signal state:std_logic_vector(3 downto 0):="0001";
\x05signal scan_clk :std_logic;
\x05signal n1_clk :std_logic;
\x05signal n2_clk :std_logic;
\x05
\x05begin
\x05
\x05pro1 :process(clk) is
\x05variable count :natural range 0 to clk_divisor -1;
\x05 begin
\x05\x05if rising_edge(clk) then
\x05\x05\x05if count =clk_divisor - 1 then
\x05\x05\x05\x05count :=0;
\x05\x05\x05\x05scan_clk
这是我的代码:目的是让数码管按照a>ab>b>bc>c>cd>d>de>e>ef>f>fa 循环发亮.
library IEEE;
use IEEE.STD_LOGIC_1164.ALL,IEEE.numeric_std.all;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity first is
port( clk:in std_logic;
\x05\x05stop:in std_logic;
\x05\x05dout:out std_logic_vector(5 downto 0));\x05\x05
end first;
architecture Behavioral of first is
\x05constant clk_freq :integer := 50000000;
\x05constant scan_clk_freq :integer := 1000;
\x05constant clk_divisor :integer :=clk_freq/scan_clk_freq ;
\x05signal state:std_logic_vector(3 downto 0):="0001";
\x05signal scan_clk :std_logic;
\x05signal n1_clk :std_logic;
\x05signal n2_clk :std_logic;
\x05
\x05begin
\x05
\x05pro1 :process(clk) is
\x05variable count :natural range 0 to clk_divisor -1;
\x05 begin
\x05\x05if rising_edge(clk) then
\x05\x05\x05if count =clk_divisor - 1 then
\x05\x05\x05\x05count :=0;
\x05\x05\x05\x05scan_clk
提示那些信号是组合逻辑生成的,没有时钟驱动.
组合逻辑对点评敏感,这样写,问题很大.给pro3和pro4加上时钟.
其实你这pro3和pro4就是很明显的两端的状态机,好好看看书去吧.
组合逻辑对点评敏感,这样写,问题很大.给pro3和pro4加上时钟.
其实你这pro3和pro4就是很明显的两端的状态机,好好看看书去吧.
Task:Rearrange the following sentences to form a paragraph,u
Rewrite the following questions in a simpler form.
loop the loop谁有完整版的 求助...
rewrite the following sentences using the -ing form as the s
Change the following sentences into plural form.
write the following in algebraic form .
Express the following in the form Ln x=ax+b and find a and b
Loop the loop中文翻译
Fill in each of the following blanks with a suitable form of
Add two letters to each of the following words to form a phr
英语翻译She following form shows the result of a survey(调查) of p
CLOSED LOOP CORRECTIVE ACTION FORM