procedureを使うと、シミュレーションが楽に書ける。 architecture test of test_module is procedure pe(signal CLK : in std_logic) is begin wait until CLK'event and CLK='1'; end pe; procedure pe( num : in integer; signal CLK : in std_logic) is begin for I in 1 to num loop wait until CLK'event and CLK='1'; end loop; end pe; begin end test;注意するのは"signal"の記述で、これが ある→procedureの中でその信号の変化を読める(この場合だと、CLKの変化を読んでいる。一方、numは「変化」を読んで
