You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[General]: should we use isa-tools' stdlib? where can we find missing definitions #128
I'm not sure if I should be using a different stdlib, but I went with isa-tools', because it also lets me run under iii, and ran into name collisions. Should I be using a different stdlib (and if so, I guess my next questions is in the isa-tools repo).
Anyway, when I try to run the SDM's (35eface) code with isa-tools' stdlib (e.g., in iii), the isa tools complain about duplicates for definitions like Integer::Align_Down, Ceiling_Divide, Ceiling_Remainder, Floor_Divide, Floor_Remainder, Truncated_Divide, Truncated_Remainder, Log2, Max, Min, and Unreachable.
Some more collisions, but now the bodies are slightly different (appears cosmetic?): Align_Down, Align_Up, All_Ones, Count_Leading_Zero_Bits, Count_Trailing_Zero_Bits, Is_All_Ones, Is_Parity_Even, Is_Parity_Odd, Is_Zero, Repeat, Rotate_Left, Rotate_Right, Shift_Right_Arithmetic, Shift_Right_Logical, Sign_Extend, Unsigned_Saturate, Shift_Left, Shift_Right, Saturate, Length, Is_Odd, Abs, Is_Even, and Is_Power_Of_Two.
Obvious resolution, because the version here doesn't build: Count_Set_Bits and Extend (#98)
Small but maybe important differences: Zero_Extend, Count_Leading_Sign_Bits (might be an isa-tools bug for the return type?), Saturate, Signed_Saturate, and Floor_Log2... and also Std::Bits::Signed and Std::Bits::Unsigned (#107 ).
Additional Information
Related to #98, and #107, maybe others? My question here is more about the correct way to provide the missing definitions, since it's not obvious that using isa-tools (16260979137c38339743a04b7fd5d9f0fa8a6ee5) is the correct thing to do.
Activity