Hello,
Ok, I have a piece of Verilog code that I want to use. But somethings are unclear to me. For example, consider the following small piece of code:
parameter x = 5000;
wire [16:0] y = (x << 20);
Ok, so this is a simple example code that illustrates my question. Question is:
How is x shifted to the left by 20? Would I have to convert 5000 from decimal to bits and shift left by 20 bit positions?
Thanks
Ok, I have a piece of Verilog code that I want to use. But somethings are unclear to me. For example, consider the following small piece of code:
parameter x = 5000;
wire [16:0] y = (x << 20);
Ok, so this is a simple example code that illustrates my question. Question is:
How is x shifted to the left by 20? Would I have to convert 5000 from decimal to bits and shift left by 20 bit positions?
Thanks