MIPS J Type Instruction Format Addressing

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

Комментарии • 18

  • @bhaveshpendyala4463
    @bhaveshpendyala4463 Год назад

    Thanks for this video sir, found it very very helpful...

  • @harshsason3725
    @harshsason3725 2 года назад +1

    Thank you, great explanation

    • @ProfessorHankStalica
      @ProfessorHankStalica  2 года назад

      Glad you found it helpful and thanks for the comment and support.

  • @husam1919
    @husam1919 5 лет назад +1

    Great explanation, thanks a lot!

  • @jadhajali2804
    @jadhajali2804 4 года назад +1

    31 --- 28* you already used 2x bits, so it's 31--28 not 27.
    still tho on my MIPS sheet, for some reason, the jumpAddress is assigned with PC+4[31-28}, address, 2'b0
    i don't know if it's a typo or what, but theyre using the PC + 4 rather than the PC.

    • @jadhajali2804
      @jadhajali2804 4 года назад +2

      and it's [31 -- 28] [27 --- 2] [1 0]
      from 2 ---> 27 there is 26 digits.

    • @georgemaher2310
      @georgemaher2310 2 года назад

      you got the idea, dnt be goofy

  • @johnbrudha8679
    @johnbrudha8679 4 года назад +4

    Life Saver

  • @Jawu523
    @Jawu523 7 месяцев назад

    Thank you ❤❤

  • @fernandogonazales1797
    @fernandogonazales1797 4 года назад

    what is the the program counter instruction number ? i thought it meant the opCode but now im not so sure

    • @hariraagavtr8426
      @hariraagavtr8426 3 года назад +1

      Ig opCode would come before these 26b's

    • @derpythecate6842
      @derpythecate6842 3 года назад +1

      Basically, to address 4GB of memory in J encoding, you need to address 2^32 bits, represented by 32 bits.
      In MIPS, which is a fixed legnth microarchitecture, we only have 32 bits per instruction. 6 bits goes to the opcode, remaining 26 bits goes to the addresses in J encoding.
      The question is, how do you address something that needs 32 bits minimum with only 26 bits for addressing? We have to make up for 6 bits one way or another. Recovering 2 of these bits from the lower order bits is easy, as a word is minimum 4 bits.
      To get the remaining 4 bits out of the missing 6, we take it from the program counter.
      Now we have a way to represent 32 bit addressing with only 26 bits!

  • @jabberwv
    @jabberwv 5 лет назад

    Not sure about your video. Haven't watched you before. Is this assembler code, or another language?

    • @ProfessorHankStalica
      @ProfessorHankStalica  5 лет назад +1

      MIPS assembly which is a RISC architecture.

    • @jabberwv
      @jabberwv 5 лет назад

      @@ProfessorHankStalica thank you.

    • @satyambinayakdash5339
      @satyambinayakdash5339 Год назад

      @@ProfessorHankStalica Simply amazing !!!Hands down best one I've found