Untitled
Anonymous
plain_text
06/02/2023 7:28 AM
328 B
17
Indexable
module SISO(clk,clear,si,so); input clk,si,clear; output so; reg so; reg [3:0] tmp; always @(posedge clk ) begin if (clear) tmp <= 4'b0000; else tmp <= tmp << 1; tmp[0] <= si; so = tmp[3]; end endmodule
Editor is loading...