0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

digitaljs その4

Last updated at Posted at 2020-06-11

概要

digitaljsやってみた。
8bitシフトレジスタ、書いてみた。

写真

image.png

サンプルコード

module sr8(input _in, clk, output _out);
    reg b1;
    reg b2;
    reg b3;
    reg b4;
    reg b5;
    reg b6;
    reg b7;
    reg b8;
    assign _out = b8;
    always @(posedge clk)
    begin
        b8 <= b7;
        b7 <= b6;
        b6 <= b5;
        b5 <= b4;
        b4 <= b3;
        b3 <= b2;
        b2 <= b1;
        b1 <= _in;
    end
endmodule

成果物

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?