VERILOG DESCRIPTION STYLES

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ม.ค. 2025

ความคิดเห็น • 19

  • @yaserc.3363
    @yaserc.3363 13 วันที่ผ่านมา +1

    Thank you, correct me if I'm wrong I think in 19:23 this is a Demux not a decoder since we have a selector

    • @Elnino12336
      @Elnino12336 9 วันที่ผ่านมา

      when input is only 1 in decoder it will become de mux

  • @vandan5036
    @vandan5036 2 ปีที่แล้ว +9

    in NAND LATCH it is active low and s is at top and in its front there is q and in front of R there should be q_bar

    • @arghya.7098
      @arghya.7098 6 หลายเดือนก่อน

      yes, you're right

  • @shirsenduacharyya9443
    @shirsenduacharyya9443 2 ปีที่แล้ว +3

    the decoder code is showing error and non synthesizable- ERROR - sel is not a constant
    module Simple_decoder_1_to_4(in,sel,out);
    input in;
    input [0:1]sel;
    output [0:3] out;
    assign out[sel]=in; // when LHS is variable we get a decoder
    endmodule

    • @arghya.7098
      @arghya.7098 6 หลายเดือนก่อน +1

      you used 3 variables but declared 2 variables. that might cause an error

    • @ghost_riderrr
      @ghost_riderrr 2 หลายเดือนก่อน

      @@arghya.7098 he declared all the variables ig

    • @murugeshwarana2427
      @murugeshwarana2427 2 หลายเดือนก่อน +1

      "assign" statement is always active, that is, whenever the values of RHS operands changes, the new value of LHS is evaluated and updated on the net.
      But in the code explain by the professor, the LHS has a variable on the LHS which is illegal according to the above definition of assign statement.
      Thus, the code can be modified as below
      module generate_decoder (out,in,sel);
      input in;
      input [1:0]sel;
      output reg [3:0]out;
      always@(in,sel)
      begin
      out[sel] = in;
      end
      endmodule
      In the above code, "out[sel] = in;" is synthesized as decoder as explained the professor.

    • @RAN-DOM___46777
      @RAN-DOM___46777 หลายเดือนก่อน

      @@murugeshwarana2427 Thank you. Your ans really helped.

  • @nenavathharisingh3231
    @nenavathharisingh3231 9 หลายเดือนก่อน +6

    Isn't that decoder a dmux ??

    • @arghya.7098
      @arghya.7098 6 หลายเดือนก่อน +2

      i guess he mistakenly told demux and decoder as same thing

  • @UTube4075
    @UTube4075 2 ปีที่แล้ว

    Best book for Verilog????

  • @يعقوبالبدر-ز9ز
    @يعقوبالبدر-ز9ز 2 หลายเดือนก่อน

    guys,does anyone know ho to get the slides which prof explain?

  • @mrkumar7181
    @mrkumar7181 5 ปีที่แล้ว +1

    Why reg is not used ?

  • @mrpossible5696
    @mrpossible5696 5 ปีที่แล้ว

    Y

  • @arghyaray9011
    @arghyaray9011 2 ปีที่แล้ว

    Can anyone help on the following !!!
    The decoder code is showing error and non synthesizable- ERROR - sel is not a constant
    module Simple_decoder_1_to_4(in,sel,out);
    input in;
    input [0:1]sel;
    output [0:3] out;
    assign out[sel]=in; // when LHS is variable we get a decoder
    endmodule

    • @abhishekagrawal542
      @abhishekagrawal542 ปีที่แล้ว +4

      but decoder ckt will not having selection line

    • @arghya.7098
      @arghya.7098 6 หลายเดือนก่อน

      you used 3 variables but declared 2 variables. that might cause an error

    • @murugeshwarana2427
      @murugeshwarana2427 2 หลายเดือนก่อน +1

      "assign" statement is always active, that is, whenever the values of RHS operands changes, the new value of LHS is evaluated and updated on the net.
      But in the code explain by the professor, the LHS has a variable on the LHS which is illegal according to the above definition of assign statement.
      Thus, the code can be modified as below
      module generate_decoder (out,in,sel);
      input in;
      input [1:0]sel;
      output reg [3:0]out;
      always@(in,sel)
      begin
      out[sel] = in;
      end
      endmodule
      In the above code, "out[sel] = in;" is synthesized as decoder as explained the professor.