entity ch_04_05 is

end entity ch_04_05;


----------------------------------------------------------------


architecture test of ch_04_05 is
begin


  process_04_2_a : process is

    -- code from book:

    type sample is array (natural range <>) of integer;

    variable short_sample_buf : sample(0 to 63);

    subtype long_sample is sample(0 to 255);
    variable new_sample_buf, old_sample_buf : long_sample;


    constant lookup_table : sample := ( 1 => 23, 3 => -16, 2 => 100, 4 => 11);

    constant beep_sample : sample := ( 127, 63, 0, -63, -127, -63, 0, 63 );

    -- end of code from book

  begin
    wait;
  end process process_04_2_a;


end architecture test;

<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>