Hi all,
I have two questions:
- I implemented a binary constant divider in VHDL with my fixed point number system.The constant is 0.5. Its signed(1,7). one bit for the sign and the rest seven bits for the fraction part. All my values are between (1,-1). My divider works fine but my question is WHY does it work fine? It may sound funny but I dont fully understand the theory behind it. I just saw a pattern in calculations and wrote my code in VHDL. please help/advise?
ENTITY divider is PORT( a : IN unsigned(7 DOWNTO 0); o : OUT unsigned(7 DOWNTO 0)); END divider; ARCHITECTURE behavior OF divider IS BEGIN o(7)