Very good idea, thanks autor http://www.**--****.com/ http://www.**--****.com/ http://www.**--****.com/
Very good idea, thanks autor http://www.**--****.com/ http://www.**--****.com/ http://www.**--****.com/
1.Nested conditional expressions ---- good idea/bad idea?
Below you will see an example of a nested conditional expression that this colleague of mine loves. He claims that it is more efficient that a multi-level if-else-if structure. Moreover, our complexity analyzer tool supposedly does not pick it up. Is it really more efficient? Personally I find this coding style extremely cryptic, misleading and error-prone. I believe that I have removed all traces of proprietary-ness from this coding example by multiple text substitutions. --NS /*************************************************************/ #include <stdio.h> #define QWER 0x1000 #define TYUI 0x2000 #define ASDF 0x4000 #define GHJK 0x8000 #define ZXCV 0x10000 #define BNML 0x20000 void print_value(int code, int type) { printf(" ==> %s, Type %02X \n", (code == QWER ? "QWER": code == TYUI ? "TYUI": code == ASDF ? "ASDF": code == GHJK ? "GHJK": code == ZXCV ? "ZXCV": code == BNML ? "BNML": "????"), type); } main(void) { print_value(BNML, 256); print_value(ZXCV, 512); print_value(GHJK, 1024); print_value(ASDF, 768); print_value(TYUI, 128); print_value(QWER, 64); print_value(BNML|QWER, 32); }
2.Any idea on VHDL and C cosimulation?Thanks
How to do cosimulation for VHDL/Verilog and C?Thanks,
3.Anyone have any ideas on this one.....Thanks tolkien
Thanks Tolkien, that did help, and workd great. I have been working on that problem for about 2 weeks now... Much appreciated !!!!
5.[OT] could it to be a good idea?
many years ago my father dead with cancer so i write for cure solid cancer. i'm a poor ignorant and my idea will be wrong, but i hope someone, somewhere, have the right idea for cure that illness rmn the nuclear magnetic resonance can build "photos" 3D of our body. is it possible to find cancer cells with that machine with resolution of millimetre/10? is it possible to have a machine that can concentrate waves for "cook" only that millimetre/10? (even if inside the body) if somebody have studied physics here what is the ideal frequency of these waves? are these radio waves? 10^9 HZ?
Users browsing this forum: No registered users and 87 guest