X
Xenon02
Guest
Hello !
I've been trying to use the operator ">>>" or "<<<" as an arithmetic shift in SystemVerilog. But I do have a problem because in the examples I see on the internet it is usually one input adress for example i_a = 1001 and it is shifter by 3 bits like in the example "i_a >>> 3" But I want to use instead of a specific number another adress like i_b = 0001. And use it in this form "i_a >>> i_b" But I don't know if the program will convert i_b which is binary into decimal. Plus I had an instruction to make i_a and i_b a Two's Complement adresses. So I have to also make i_b not negative.
Also how does it look when we go to logic gates ? The i_b can be any value. So How many logic gates will it make to shift adress i_a ? Infinitely ? Because even if i_a is shifted to the moment it is "0000" or "1111" it can shift even 8 bits more and it will be still "0000" or "1111". I can't imagine how the program will work or how it will look like using logic gates.
Thanks for any help !
I've been trying to use the operator ">>>" or "<<<" as an arithmetic shift in SystemVerilog. But I do have a problem because in the examples I see on the internet it is usually one input adress for example i_a = 1001 and it is shifter by 3 bits like in the example "i_a >>> 3" But I want to use instead of a specific number another adress like i_b = 0001. And use it in this form "i_a >>> i_b" But I don't know if the program will convert i_b which is binary into decimal. Plus I had an instruction to make i_a and i_b a Two's Complement adresses. So I have to also make i_b not negative.
Also how does it look when we go to logic gates ? The i_b can be any value. So How many logic gates will it make to shift adress i_a ? Infinitely ? Because even if i_a is shifted to the moment it is "0000" or "1111" it can shift even 8 bits more and it will be still "0000" or "1111". I can't imagine how the program will work or how it will look like using logic gates.
Thanks for any help !