Dear all,
I have the following ALU code as part of a data path:
-- purpose: simple ALU -- type : combinational -- inputs : a, b, op_sel -- outputs: y alu : PROCESS (a, b, op_sel) BEGIN -- PROCESS alu CASE op_sel IS WHEN "0000" => -- increment y -- decrement y -- test for zero y -- addition y -- subtract, compare y -- logical and y -- logical or y -- logical xor y -- logical not y -- shift left logical y -- shift right logical y y