title: convert integer to fixed point in division operation
body: <p>I have this code in my project. </p>
  
  <pre><code>library ieee;
  use ieee.std_logic_1164.all;
  use ieee.numeric_std.all;
  
  library ieee_proposed;
  use ieee_proposed.fixed_pkg.all;
  
  entity sfixed_test is
   port(x1 : in integer :=20;
          x2 : in integer := 23;
          N : out sfixed( 8 downto -8));
  
  end sfixed_test;
  
  architecture Behavioral of sfixed_test is
      signal Ni,Nii,No,Noo,nb :integer;
  
  signal Niii : sfixed(4 downto -20);
      signal Nn : sfixed(4 downto -20);
  signal N1max : integer := 34;
      signal N1min : integer := 14;
      signal N2max : integer := 56;
      signal n2min : integer := 0;
  
  begin
  
  
      Ni &lt;= x1-N1min;
      Nii &lt;= N1max-N1min;
      Niii &lt;= to_sfixed(Ni/Nii,Niii);
  
  
      No &lt;= x2-N2min;
      Noo &lt;= N2max-N2min;
      Nn &lt;= to_sfixed(No/Noo,Nn);
  
  end Behavioral;
  </code></pre>
  
  <p>I want to convert result value from my division operation, but the value of <strong>Niii</strong> and <strong>Nn</strong> is zero went i try running my code in simulator. And te result of my project is not correct. 
  Please to helping me.</p>
  
  <p>Thank you</p>