BLOCKING / NON-BLOCKING ASSIGNMENTS (PART 1)

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 18

  • @mrlajel
    @mrlajel 5 років тому +10

    3:18 - 6:11 procedural assignment and its characteristics.
    6:16 blocking assignment
    17:10 non blocking assignment, 17:24 non blocking assignments are executed concurrently.

  • @prasanthbadisa
    @prasanthbadisa 7 років тому +3

    i covered ur previous oll lectures.
    Thanks for uploading latest version on very log concepts thanks to NPTEL

  • @avinasha237
    @avinasha237 5 місяців тому +3

    Why need temporary variable for both a and b . A single temporary variable is enough to swap.
    a = 8 ; b =5;
    temp = a;
    a = b;
    b = temp;
    output: a = 5 ; b = 8

    • @sakshisingh4197
      @sakshisingh4197 3 місяці тому

      this is also fine.you can do it with single variable also

    • @avinasha237
      @avinasha237 3 місяці тому

      @@sakshisingh4197 how?? Is that what you mean by using non blocking assignments?

  • @jatinsharma3883
    @jatinsharma3883 4 роки тому +10

    @22:26 Both the assignments are in different always block. So they should not be blocking each other. Swapping should take place. Please clear the doubt?

    • @knowledgeunlimited
      @knowledgeunlimited 4 роки тому +1

      Yes I too got the same doubt.

    • @sairajat4824
      @sairajat4824 2 роки тому +2

      We don't know which statement will execute first right? (as both of them are set to execute simultaneously), since neither blocks out the other. Thus, there is a race condition.

    • @DIVITSHARMA-nj9hn
      @DIVITSHARMA-nj9hn 5 місяців тому

      but for non-blocking example , they are in different block , so their non-blocking effect will not apply na ?

    • @bharadwaj767
      @bharadwaj767 2 місяці тому

      It boils down to compiler regions (NBA, Pre, Post, active...), all (entire module/verilog_file) the NBA statements are evaluated together ​(doesn't matter whether we have more than one 'always' or 'initial' blocks). Thus, swapping takes place.
      Refer about regions in verilog compiler/simulator@@DIVITSHARMA-nj9hn

  • @JayPatel-g8s
    @JayPatel-g8s Рік тому +1

    @ 12:46 the variable A and B are 32 bit size so instead of 31'b0 assigning, i think 32'b0 will come?? Please check.

  • @akhilakki8555
    @akhilakki8555 4 роки тому +1

    thank you

  • @tanetijaya8448
    @tanetijaya8448 5 років тому +1

    Tnk u sir.... I need reference book for verilog kindly can u suggest me sir

    • @knowledgeunlimited
      @knowledgeunlimited 4 роки тому +6

      Samir palnitkar is a good book for verilog.

    • @chandinishaik4218
      @chandinishaik4218 8 місяців тому

      Viabhav tarate is also good for basic verilog programming @@knowledgeunlimited

  • @mrpossible5696
    @mrpossible5696 5 років тому

    Ty

  • @HimanshuSalunkhe-is1dg
    @HimanshuSalunkhe-is1dg Рік тому

    @2:56

  • @mrpossible5696
    @mrpossible5696 5 років тому

    17:03