1
0
mirror of synced 2026-04-25 20:02:10 +00:00
Files
YosysHQ.yosys/tests/arch/common/shifter.v
2021-06-09 12:16:33 +02:00

12 lines
195 B
Verilog

module top(out, clk, in);
output [7:0] out;
input signed clk, in;
reg signed [7:0] out = 0;
always @(posedge clk)
begin
out <= out >> 1;
out[7] <= in;
end
endmodule