On Thu, 04 Nov 2010 17:21:52 +0100, Thomas Sailer wrote: > On Thu, 2010-11-04 at 17:08 +0100, whygee wrote: >> As far as i know, in VHDL, >> integers have no support for xor, not, and, or, shl, shr... >> it does make some kinds of behavioural tests pretty slow >> because it forces the use of std_ulogic_vectors. > Plus unsigned nontrapping modulo arithmetic...
hah, that's another issue. But assuming that it was not, what good reason do I have to not write a VHPIDIRECT-based package with these essential operations ? Has anybody done it before ? Could there be (later) a patch to GHDL that provides AND/OR/XOR to integers so GCC does not have to make a function call just of one boolean instruction ? (that would have to be enabled with a pragma or command line option of course, to not mess with existing code bases) I simply feel an urge to write/code something about this today but i don't want to reinvent the wheel. > Tom yg _______________________________________________ Ghdl-discuss mailing list [email protected] https://mail.gna.org/listinfo/ghdl-discuss
