sir
i want to design one model where input and output both are fixed point . if we will give some selected input then output should be its corresponding output. i have written a code is it write?
library IEEE_proposed;use IEEE_proposed.fixed_pkg.ALL;entity inv_q isport( address :inufixed(1downto-2);
data :outufixed(1downto-8));end inv_q;architecture Behavioral of inv_q isbeginprocess(address)begincase address iswhen"0000"=> data <="1000001101";when"0001"=> data <="1001010011";when"0010"=> data <="0111100001";when"0011"=> data <="0111000000";when"0100"=> data <="0110100101";when"0101"=> data <="0110001110";when"0110"=> data <="0101111001";when"0111"=> data <="0101100111";when"1001"=> data <="0101010111";when"1010"=> data <="0101001000";whenothers=> data <="0000000000";endcase;endprocess;end Behavioral;