VOOZH about

URL: https://qiita.com/kaizen_nagoya/items/7fe2d6a02f2f1fa6474f

⇱ 3bit CPU 4命令 #CPU - Qiita


👁 Image
0

Go to list of users who liked

1

Share on X(Twitter)

Share on Facebook

Add to Hatena Bookmark

👁 Image
IoT・ハードウェア・XR Qiita Tech Festa 2025
Qiita Tech Festa20252025年7月15日まで開催中!
@kaizen_nagoya(Dr. Kiyoshi Ogawa)

3bit CPU 4命令

0
Last updated at Posted at 2025-07-02

3bit CPU 4命令

👁 Image
plantuml
'--- 加算処理(R = R + 1)
s0 --> s1 : 加算
s1 --> s2 : 加算
s2 --> s3 : 加算
s3 --> s4 : 加算
s4 --> s5 : 加算
s5 --> s6 : 加算
s6 --> s7 : 加算
s7 --> s7 : 加算(最大値保持)

'--- 減算処理(R = R - 1)
s7 --> s6 : 減算
s6 --> s5 : 減算
s5 --> s4 : 減算
s4 --> s3 : 減算
s3 --> s2 : 減算
s2 --> s1 : 減算
s1 --> s0 : 減算
s0 --> s0 : 減算(最小値保持)

'--- clear(R ← 0)
s1 --> s0 : clear
s2 --> s0 : clear
s3 --> s0 : clear
s4 --> s0 : clear
s5 --> s0 : clear
s6 --> s0 : clear
s7 --> s0 : clear

'--- nop(変化なし)
s0 --> s0 : nop
s1 --> s1 : nop
s2 --> s2 : nop
s3 --> s3 : nop
s4 --> s4 : nop
s5 --> s5 : nop
s6 --> s6 : nop
s7 --> s7 : nop
@enduml

Ref.

職業訓練
https://qiita.com/kaizen_nagoya/items/95368b63fa21d64271ec

UML記事一覧
https://qiita.com/kaizen_nagoya/items/7e7f3af08e1f3bd0380c

0

Go to list of users who liked

1
0

Go to list of comments

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

Go to list of users who liked

1