Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
3,5,7,0を数えて繰り返す同期カウンターの作り方は?
Tフリップフロップが3つ必要だと思いますか?
うーん、別の方法で処理すると、より簡単になります。2 つの上位ビットが 0、1、2、3 を循環し、下位ビットは上位ビットの OR です。
(疑似コード)のようなもの
wire V[1:0]; wire Out[2:0]; @(posedge clk) { V += 1; Out[2] <= V[1]; Out[1] <= V[0]; Out[0] <= V[1] | V[0]; }