2013-04-14から1日間の記事一覧

Verilog HDLを掘り下げる

こちらにあるのが「スイッチを押すたびに4bitのレジスタの値を1増やして、それをLEDで表示」というVerilog HDLのコード。 module Tiny(switch, led); input switch; output [3:0] led; reg [3:0] x; always @(posedge switch) begin x = x + 1; end assign l…