entity ch_03_10 is end entity ch_03_10; ---------------------------------------------------------------- architecture test of ch_03_10 is type opcode_type is (nop, add, subtract); signal opcode : opcode_type := nop; begin process_3_3_a : process (opcode) is variable Acc : integer := 0; constant operand : integer := 1; begin -- code from book: case opcode is when add => Acc := Acc + operand; when subtract => Acc := Acc - operand; when nop => null; end case; -- end of code from book end process process_3_3_a; stimulus : process is begin opcode <= add after 10 ns, subtract after 20 ns, nop 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>