[an error occurred while processing this directive]
|
module ShiftReg(clk, in, out, load);
input clk;
input [7:0] in;
input load;
output out;
reg [7:0] Reg;
always @(posedge clk)
begin
if(load)
Reg = in;
else
Reg=Reg>>1;
end
assign out = Reg[0];
endmodule
E-mail: info@telesys.ru