BLOCKING / NON-BLOCKING ASSIGNMENTS (PART 1)

Поделиться
HTML-код
  • Опубликовано: 15 окт 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.

  • @avinasha237
    @avinasha237 4 месяца назад +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 4 месяца назад

      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

  • @prasanthbadisa
    @prasanthbadisa 7 лет назад +3

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

  • @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.

  • @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 7 месяцев назад

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

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

    thank you

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

    Ty

  • @HimanshuSalunkhe-is1dg
    @HimanshuSalunkhe-is1dg Год назад

    @2:56

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

    17:03