assembly - Converting binary word microinstruction to mnemonic -


the binary words i'm referring image:

enter image description here

i have found believe correct answers. want double check , sure.

line1:

r[33] <- sext13(r[37]); 

line2:

r[33] <- add(r[rs1], r[33]); goto 1793; 

line3:

r[33] <- add(r[rs1], r[rs2]); if r[ir[13]] goto 1810; 

i appreciate can give me

yes right

at least if r[ir[13]] means bit 13 of %ir , not register number ir[13] possibly r0 or r1 ir[13] bit.


a more detailed analysis:

line 1

                amux    b     bmux      c   cmux   wr      rd       alu       binary    100101   0    000000   0    100001   0     0       0        1100 meaning       37  mir        0  mir       33  mir   no wr.  no rd.  sext13(a)                   cond            jump addr  binary            000            00000000000 meaning     use next address             0 

encodes: r33 = sext13(r37), move next microcode location.

line 2

                amux    b     bmux      c   cmux   wr      rd       alu       binary    000000   0    100001   0    100001   0     0       0        1100 meaning        0  rs1       33  mir       33  mir   no wr.  no rd.  add(a,b)                   cond            jump addr  binary            110            11100000001 meaning     use jump address            1793 

encodes: r33 = add rs1, r33, move microcode location 1793.

line 3

                amux    b     bmux      c   cmux   wr      rd       alu       binary    000000   0    000000   0    100001   0     0       0        1100 meaning        0  rs1        0  rs2       33  mir   no wr.  no rd.  add(a,b)                   cond                             jump addr  binary            101                           11100010010 meaning     use jump address if ir[13] = 1             1810 

encodes: r33 = add rs1, rs2, move microcode location 1810 if %ir[13] set.

where rs1 , rs2 registers specified in instruction in %ir.


Comments

Popular posts from this blog

python - No exponential form of the z-axis in matplotlib-3D-plots -

php - Best Light server (Linux + Web server + Database) for Raspberry Pi -

c# - "Newtonsoft.Json.JsonSerializationException unable to find constructor to use for types" error when deserializing class -