Am Samstag, 22. September 2012 23:55:43 UTC+2 schrieb ashw_pict:
> yes you can simulate ternary ALU.you have to refer to the paper by a.p.dhande,r.c.jaiswal and s.s. dudam title ternary logic simulator using vhdl.
>
>
>
> --http://compgroups.net/comp.lang.vhdl/multi-valued-logic-simulation-using-vhdl/367352
Hi,
an intersting paper, since they provide the source code for their ternary types and operators.
But one thing makes me wonder.
To my understanding the ternary logic type should improve arithmetic functions.
In the paper the ternary type uses {0, Z, 1}.
So, when I get some logic result, is Z interpreted as 0.5?
Why didn't they create a new type {0 1 2} and overload the operators and functions for it, just like it is done for the std_logic type?
Have a nice simulation
Eilert
|