Jun 3, 2008 #1 S soloktanjung Full Member level 6 Joined Nov 20, 2006 Messages 364 Helped 51 Reputation 100 Reaction score 43 Trophy points 1,308 Location nowhere Activity points 3,194 Hi friends, Is this similar or not? d=c2-[c3+(c3<<1)]>>3 and d=c2-[(c3<<3)+(c3<<1)] I've read from a paper about the first one, but if I do as in the second one, is it still correct? Is it the first one require less logic? Anyone can help me? Thanks in advances. Hairo
Hi friends, Is this similar or not? d=c2-[c3+(c3<<1)]>>3 and d=c2-[(c3<<3)+(c3<<1)] I've read from a paper about the first one, but if I do as in the second one, is it still correct? Is it the first one require less logic? Anyone can help me? Thanks in advances. Hairo
Jun 4, 2008 #2 E echo47 Advanced Member level 6 Joined Apr 7, 2002 Messages 3,933 Helped 638 Reputation 1,274 Reaction score 90 Trophy points 1,328 Location USA Activity points 33,176 You haven't shown what type of variables/signals those are, but the expressions don't look at all similar. Plug in some numbers and you'll see. Maybe you mistyped them? By the way, you can't use square brackets in a Verilog expression.
You haven't shown what type of variables/signals those are, but the expressions don't look at all similar. Plug in some numbers and you'll see. Maybe you mistyped them? By the way, you can't use square brackets in a Verilog expression.
Jun 4, 2008 #3 S soloktanjung Full Member level 6 Joined Nov 20, 2006 Messages 364 Helped 51 Reputation 100 Reaction score 43 Trophy points 1,308 Location nowhere Activity points 3,194 Hi Echo47, I've tested it with some numbers and both expression are not similar. Thanks for the note that the square brackets can't be use in Verilog. I'll replace it with "(". Thanks, Hairo
Hi Echo47, I've tested it with some numbers and both expression are not similar. Thanks for the note that the square brackets can't be use in Verilog. I'll replace it with "(". Thanks, Hairo