[Suggestion] This package may be highly benefitted from SystemC fixed-point arithmetics
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
Línea de trabajo
No se nombran archivos, pruebas ni puntos de entrada. Empieza revisando la semántica de punto fijo de SystemC en IEEE 1666-2011 Sección 7.10 y el alcance actual del paquete, y define después la Julia API deseada, las operaciones compatibles y el comportamiento de conversión antes de la implementación.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Julia
- Estrellas
- 95
- Forks
- 38
- Merge medio
- 1 d 7 min
- PR fusionados (30 d)
- 4
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de JuliaMath/FixedPointNumbers.jl
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
JuliaMath/FixedPointNumbers.jl#310 · 1 comentario ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 42/100
JuliaMath/FixedPointNumbers.jl#331 · 7 comentarios ·
-
needs comments
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
JuliaMath/FixedPointNumbers.jl#318 · 1 comentario ·
-
add-on enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
JuliaMath/FixedPointNumbers.jl#311 · 4 comentarios ·
Todos los issues de JuliaMath/FixedPointNumbers.jl
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
SciML/Evolutionary.jl#182 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
bot-test documentation
Dificultad 2/5 Medio día Aptitud para principiantes 78/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100