[Suggestion] This package may be highly benefitted from SystemC fixed-point arithmetics
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
未指定任何文件、测试或入口点。首先查看 IEEE 1666-2011 第 7.10 节中的 SystemC 定点语义以及 package 的当前范围,然后在实现之前定义所需的 Julia API、支持的操作和转换行为。
由索引模型根据 Issue 内容生成。
描述
I've been using SystemC for modelling systems with fixed-point arithmetics for a while. It focuses on describing hardware systems with C++ language and it's been pretty mature, with an IEEE Standard (https://standards.ieee.org/standard/1666-2011.html)
Section 7.10 of the standard approaches fixed-point types and their characteristics. In general, a fixed-point number can be represented and used as:
sc_fixed_fast<8, 1, SC_RND, SC_SAT> x = 0.5; //round and saturate
sc_fixed_fast<9, 2, SC_TRN, SC_WRAP> y = 0.5; //truncate and wraparound overflow
One of the useful applications of this type system is you can have 'wide' variables to do a series of calculations and store a given value, then create a <8, 1> type to round and saturate the input to your interface. The error from converting a wide type (for example, <32, 8> storing some multiplication) to a smaller type is expected and is part of the whole analysis for the system application.
Apparently, sc_fixed_fast types always store 32/64 bit numbers, but only operate on their given number of bits. They are fast because they don't try to store and odd number of bits (such as 9) in the memory, although they obviously use more memory than necessary.
A bunch of useful operations are defined, such as bitwise AND and OR and bitshift operators (<<, >>, <<<, >>>).
Although this type system from SystemC is pretty useful, I think Julia could offer a much wider world of opportunities.
If all this sounds reasonable, I'd be glad to help. If it's not the scope of the project, it's understandable.
- 主要语言
- Julia
- 星标
- 95
- 派生
- 38
- 平均合并
- 16 小时 31 分钟
- 30 天内合并 PR
- 9
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
JuliaMath/FixedPointNumbers.jl 的其他 Issue
-
bug
难度 5/5 一周以上 新手友好度 35/100
JuliaMath/FixedPointNumbers.jl#343 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 62/100
JuliaMath/FixedPointNumbers.jl#342 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
JuliaMath/FixedPointNumbers.jl#337 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 42/100
JuliaMath/FixedPointNumbers.jl#331 · 7 条评论 ·
维护者通常 1 天内回复
-
needs comments
难度 3/5 1-2 天 新手友好度 68/100
JuliaMath/FixedPointNumbers.jl#318 · 1 条评论 ·
维护者通常 1 天内回复
查看 JuliaMath/FixedPointNumbers.jl 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
-
`default_linear_interpolation` is called with its arguments swapped, so its opt-outs never apply未关闭
难度 2/5 1-3 小时 新手友好度 78/100
SciML/OrdinaryDiffEq.jl#4684 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
SciML/Evolutionary.jl#182 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
jmejia8/Metaheuristics.jl#130 ·