Altera_Forum
Honored Contributor
12 years agoAbout logic and with bitwise and
In Verilog, we have two types "and", logic and "&&" and bitwise and "&". In the following case:
wire [1:0] a; wire b; wire c; assign c = (a==2'b01) && (b==1'b1); assign c = (a==2'b01) & (b); Will I get the same result for wire "c"? For the statement "a==2'b01", can we think the return value of it be same as a value of wire or reg? If it is, I think the result of "c" is same. Thanks in advance.