sesl33
Junior Member level 1
I have a question.
What is the circuit for shift register without clock?
Just an example, say I have a verilog code as follows:-
reg [15:0] A, B;
reg [15:0] C;
integer i;
always @(A or B) begin
for (i=0; i < 16; i = i + 1) begin
if (A>B) begin
A = A << 1;
C = 1;
end
else begin
B = B << 1;
C = 1;
end
end
PS: There is no purpose for the circuit description above. Just an example that I cannot visualize on how the digital circuit will look like.
What is the circuit for shift register without clock?
Just an example, say I have a verilog code as follows:-
reg [15:0] A, B;
reg [15:0] C;
integer i;
always @(A or B) begin
for (i=0; i < 16; i = i + 1) begin
if (A>B) begin
A = A << 1;
C = 1;
end
else begin
B = B << 1;
C = 1;
end
end
PS: There is no purpose for the circuit description above. Just an example that I cannot visualize on how the digital circuit will look like.