1 Verilog描述

module shift_p2s(
    input         clk,
    input [7:0]    din,
    input         load,
    output reg     q
);
    reg [7:0] tmp;
    
    [email protected](posedge clk)begin
        if(load == 1'b1)
            tmp <= din;
        else begin
            q <= tmp[7];
            tmp <= {tmp[6:0],1'b0};
        end
    end

endmodule

2 RTL视图

8位并行输入串行输出的移位寄存器的Verilog描述

3 功能仿真

8位并行输入串行输出的移位寄存器的Verilog描述

相关文章:

  • 2021-11-28
  • 2021-07-02
  • 2021-10-20
  • 2021-11-28
  • 2021-05-02
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2021-08-29
  • 2022-03-08
  • 2022-12-23
  • 2021-10-15
  • 2021-11-28
  • 2021-08-29
相关资源
相似解决方案