systemc-compiler icon indicating copy to clipboard operation
systemc-compiler copied to clipboard

support for fixed point datatypes sc_fixed sc_ufixed

Open lbbrhzn opened this issue 3 years ago • 3 comments

Can you outline what would be needed to add support for sc_fixed and sc_ufixed data types?

I'd be happy to attempt to contribute, but I must admit I am not that familiar with llvm..

lbbrhzn avatar Dec 01 '22 08:12 lbbrhzn

Hello. You are welcome to contribute into the project. That requires strong C++ experience, lots of attentions to low level details and enough time. That is specially true for arithmetic support, as soon as required to ensure equivalent results between SystemC and generated SV simulations. Please consider >90% of time is testing.

Can I ask you what is your reasons to participate? Are you HW designer who needs fixed/ufixed types?

We are planning to support floating points in Q1`23, and could collaborate in fixed point implementation. As start point you can check ScGenerateExpr::parseBinaryStmt, ScVerilogWriter::putBinary, ScVerilogWriter::getVarDeclVerilog.

-Mikhail.

mikhailmoiseev avatar Dec 03 '22 19:12 mikhailmoiseev

Hello. You are welcome to contribute into the project. That requires strong C++ experience, lots of attentions to low level details and enough time. That is specially true for arithmetic support, as soon as required to ensure equivalent results between SystemC and generated SV simulations. Please consider >90% of time is testing.

Can I ask you what is your reasons to participate? Are you HW designer who needs fixed/ufixed types?

We are planning to support floating points in Q1`23, and could collaborate in fixed point implementation. As start point you can check ScGenerateExpr::parseBinaryStmt, ScVerilogWriter::putBinary, ScVerilogWriter::getVarDeclVerilog.

-Mikhail.

Any solution to fixed point data type? I currently use scaling to work around the issue.

tvd040562 avatar Jan 02 '24 04:01 tvd040562

No progress in this topic yet. There are some plans to implement it, but priority is low.

mikhailmoiseev avatar Jan 02 '24 18:01 mikhailmoiseev

completed, really?!

lbbrhzn avatar Aug 23 '24 21:08 lbbrhzn

Not completed. No plans to work on that near year, sorry for that.

mikhailmoiseev avatar Aug 23 '24 22:08 mikhailmoiseev