Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

VHDL project: is sfixed type synthesisable?

Hi, everybody!

I'm going to use numbers with fixed point in my VHDL project and I need to implement it into FPGA circuit. Is the type sfixed synthesisable?

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Ive used the ones from thepancake's link for a couple of years without any problems (and they make things SOOO much easier to read when you're doing loads of fixed point).

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Just as another point, if you dont do it already.

    You can also use sfixed for ports (even at the top level if you want) and infer rams and multipliers from it. No need to use std_logic_vector ever.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Tricky, will this type be translated like integer to std_logic_vector ?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    sfixed is just another array of std_logic, like unsigned or signed or std_logic_vector itself.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    i ran across a problem that made me go back to std_logic_vector for ports, but i can't remember what it was

    can you use sfixed in Qsys?