Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed point arithmetic #1050

Open
umlaeute opened this issue Sep 2, 2024 · 3 comments
Open

fixed point arithmetic #1050

umlaeute opened this issue Sep 2, 2024 · 3 comments

Comments

@umlaeute
Copy link
Contributor

umlaeute commented Sep 2, 2024

while packaging faust-2.74.6 for Debian, I tried to test the new faust2comparator with faust2comparator foo.dsp -fx-size 48 as described in

For example, to impose a fixed width of 48 to fixed-point types in `foo.dsp`, run `faust2comparator foo.dsp -fx-size 48`

however, this gives me build errors:

  1. it cannot find float.cpp (which is generated in the cwd, so adding -I. to the compiler invocation fixes the problem)
  2. however, float.cpp then goes on to include ap_fixed.h, which is supposed to live in /usr/local/include/ap_fixed/; at least if I read the compiler invocation correctly:
    $CXX $CXXFLAGS -g "$FAUSTARCH/comparator/compclass.cpp" "-I/usr/local/include/ap_fixed" `pkg-config --cflags --static --libs sndfile jack gtk+-2.0` -o "${f%.dsp}"

now, I do not have a /usr/local/include/ap_fixed/ap_fixed.h file (nor the entire directory).

where does it come from?
probably something like https://github.com/Xilinx/HLS_arbitrary_Precision_Types.git, but using the Xilinx headers gives me template-errors (unfortunately i didn't write them down before deleting the container).

It would be nice if there were some hints on how to use the fixed-point backends (e.g. what to install where)

@sletz
Copy link
Member

sletz commented Sep 2, 2024

The -fx option is not considered usable for now.

@umlaeute
Copy link
Contributor Author

umlaeute commented Sep 2, 2024

thanks for the quick response. what would be a usable invocation of faust2comparator then?

EDIT: or is faust2comparator not usable right now? (in which case I would just exclude it from the packaging)

@sletz
Copy link
Member

sletz commented Sep 2, 2024

Probably nothing for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants