Quartus II 13.0sp1 (64 ビット) Web Edition を実行しています。ModelSim シミュレータでモジュールを設計していました。残念ながら、Quartus II 13.0sp1 を介して Altera Kit を使用してプログラムをテストしようとしたとき. プログラムの実行には非常に時間がかかります。私のオペレーティング システムは Windows 8 であり、MacBook Pro 2.5 GHz i5 で実行しています。
これが私のライブラリ、エンティティ、および私のアーキテクチャの一部です:
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity PrimeTest is
port( SW: in std_logic_vector(17 downto 0);
KEY: IN STD_LOGIC_VECTOR(3 DOWNTO 0);
LEDG: out std_logic_vector(8 downto 0);
LEDR: out std_logic_vector(17 downto 0));
end PrimeTest;
Architecture Behavior1 of PrimeTest is
signal Binary_N: std_logic_vector(17 downto 0);
signal Binary_M: std_logic_vector(17 downto 0);
signal integer_M: integer;
signal Binary_E: std_logic_vector(17 downto 0);
signal Integer_N: integer;
signal Integer_R: integer;
signal binary_R: std_logic_vector(17 downto 0);
signal Test1 : std_logic ;
私は実際に関数を使用してプログラムを実行していますが、それらのいくつかは不純です(これがこの問題の原因です!)。ただし、これは私の関数の呼び出しです:
Begin
integer_M <= Integer_Binary(SW) WHEN KEY = "1110";
test1 <= IS_Prime(integer_M)WHEN KEY = "0111";
LEDG(8) <= test1;
WITH KEY SELECT
LEDR <= SW WHEN "1110",
(others=>'0') WHEN OTHERS;
end Behavior1;