entity ch_03_06 is end entity ch_03_06; ---------------------------------------------------------------- architecture test of ch_03_06 is -- code from book: type alu_func is (pass1, pass2, add, subtract); -- end of code from book signal func : alu_func := pass1; signal operand1 : integer := 10; signal operand2 : integer := 3; begin process_03_2_a : process (func, operand1, operand2) is variable result : integer := 0; begin -- code from book: case func is when pass1 => result := operand1; when pass2 => result := operand2; when add => result := operand1 + operand2; when subtract => result := operand1 - operand2; end case; -- end of code from book end process process_03_2_a; stimulus : process is begin func <= pass2 after 10 ns, add after 20 ns, subtract after 30 ns; wait; end process stimulus; 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 /> </div>