Traffic Light Controller Using Verilog (with code)| Vivado| Moore Finite State Machine

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

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

  • @ArjunNarula1122
    @ArjunNarula1122  4 года назад +10

    Please find the code in the link description. Any suggestions or queries are most welcomed.
    PLEASE SUBSCRIBE TO THE CHANNEL.
    Other Projects-
    ►Traffic Light Controller in Verilog - ruclips.net/video/Yt7no6rwCVk/видео.html
    ►Round Robin Arbiter in Verilog - ruclips.net/video/X6oJn7r9-8s/видео.html
    ►Vedic Multiplier in Verilog - ruclips.net/video/6M3nyyQfpHU/видео.html
    ►Clock with Alarm in Verilog - ruclips.net/video/pTk1H50e8bI/видео.html
    ►Washing Machine in Verilog - ruclips.net/video/iAoi9jTzxcI/видео.html
    ►N bit Multiplier in Verilog - ruclips.net/video/lmzCdx6gkdU/видео.html
    ►PWM Shift Register in Verilog - ruclips.net/video/Pz9sPflKpXc/видео.html

    • @bharathkrishna5917
      @bharathkrishna5917 3 года назад +2

      Bro in the waveform 1 means Green, 4 means Red and 2 means Yellow. How do you say that particular number indicates particular color ? Why there is number 3 ?

    • @anshumanpanigrahi7817
      @anshumanpanigrahi7817 3 года назад +2

      @@bharathkrishna5917 We're taking binary values as RYG. So, for yellow it is 2's binary i.e, 010, for green 001, for red 100

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

      @@anshumanpanigrahi7817 Perfect!

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

      Please help to simulate the test bench

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

      @@mounikayalla9850 Where exactly are you facing issues?

  • @dumpling3309
    @dumpling3309 3 года назад +2

    Thank you so much Arjun! I greatly appreciate your examples to ultimately understand Verilog HDL.

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

      You're most welcomed Real E. !!! Glad I could be of some help to you!

    • @pranavreddy1245
      @pranavreddy1245 3 месяца назад

      How to simulate pls tell

  • @yuktasachdeva7822
    @yuktasachdeva7822 3 года назад +3

    Helped in my Assignment, thankyou Arjun! Well explained

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

    Amazing work ✨✨
    Explanations are very nicely done!!!

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

    I'm from Vietnam, thank you very much

  • @Taiyab0707
    @Taiyab0707 Год назад +2

    hello sir i have problem during running the code
    traffic_light_TB.v:12: error: Unable to bind wire/reg/memory `traffic_light_controller_TB' in `Traffic_Light_Controller_TB'
    1 error(s) during elaboration.
    this showing i check many times but code is right i dont know why this showing

  • @gudushakti99
    @gudushakti99 2 года назад +2

    It is very good project and you explained in a proper manner...Thank you so much😀can you please put the video for implementation part like schematic and other things you put in the pdf please do video on it....

    • @ArjunNarula1122
      @ArjunNarula1122  2 года назад +2

      Thank you for the appreciation Shakti ✨.
      Stay tuned for the video on implementation as well.

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

      When are you posting the implementation video ? And also the same project can be implemented on Xilinx ISE ?

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

    Amazing Project
    and very well explained.

  • @poojakadam5197
    @poojakadam5197 3 года назад +3

    Hello arjun nice project well done
    I'm getting doubt's when I go through the PDF can u make complete video of that like schematics implemention and all

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

      Thank you for your feedback Pooja ,I'll soon upload a video on implementation.

  • @bharathkrishna5917
    @bharathkrishna5917 3 года назад +5

    Bro I am getting high impedance as 'z' for both clk and rst. Could you please help me ?? I am using xilinx 14.2

  • @HG-jl4ed
    @HG-jl4ed 2 года назад +2

    Hey superb explanation thank you , but why there is colour initially in the waveform

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

      Thanks!
      Regarding your question I am not aware of that but will let you know as soon as I get it.

  • @rajjatmmetha2335
    @rajjatmmetha2335 2 года назад +2

    @Arjun Narula how to simulate it you have skipped the part in video can you please share how to simulate it I am unable to simulate it.please help me sir please.

  • @anshumanpanigrahi7817
    @anshumanpanigrahi7817 3 года назад +4

    Hi Arjun, I'm getting red lines corresponding to M1,S,MT,M2, and the values are xxx while Simulating. Please enlighten where things are going wrong. I'm using Xilinx ISE 7.1

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

      Did you find a solution to this?

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

      @@ayushshrivastava6917 Nope bro. Did you get?

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

      lol naah i looked a lot but couldn't find the solution. But I am almost sure the problem lies with how we have setup the project rather than the code.

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

      @@ayushshrivastava6917 Yep, and I feel it's in the test bench code. Please let me know if you find the solution.

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

      Same problem is occured but I am using xilinx ISE 14.5

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

    Informative video, big fan sir

  • @hareelakshmiapasokarstuden1058
    @hareelakshmiapasokarstuden1058 2 года назад +3

    Hye sir..can i know what does TMG,TY,TTG and TSG stands for please??

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

    tried it myself, good job

  • @ratnaprasad6522
    @ratnaprasad6522 2 года назад +2

    Hi.. Very good explanation. If u don't mind i want a small modification for this project. I stuck at one point. Can you please solve my problem. It will be more helpful to me to understand the problem. Please

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

      I read your message on LinkedIn , let's discuss your doubts .

  • @squirrelsvid1856
    @squirrelsvid1856 11 месяцев назад

    Arjun , how to extraxt files from github and use it in vivade? Any video on that?

  • @vinayakgandhi2023
    @vinayakgandhi2023 2 года назад +2

    Awesome work!!

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

    nice work man... by the way can we dump the program in spartan 3 or 3e board

  • @simchawla211
    @simchawla211 3 года назад +2

    Very informative! Thanks for this.

  • @Heartfelt_Lines_by_Sai
    @Heartfelt_Lines_by_Sai 3 года назад +2

    can you tell me how we can give coding in vivado
    and what are the inputs and outputs in this projects

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

      Regarding how to create a project and how to give inputs in vivado I'll come up with a new video.

  • @madhavvaddemani7289
    @madhavvaddemani7289 3 года назад +4

    bro, I have used ISE 14.1 instead of vivado. There was no errors but the TB graph was completely different from yours. what would be the reason?

    • @ArjunNarula1122
      @ArjunNarula1122  3 года назад +2

      Hi Madhav , is the timescale of your graph same as the one in the video?

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

    Is this a standard way to design trafic control bcz i have another way to do it without this much difficulty????

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

      Hi Ramkaran , this is not the standard way. I have formulated the problem statement in the first half of the video.

  • @hawkeyegaming3340
    @hawkeyegaming3340 4 года назад +3

    Can you explain how to simulate this in simulators?

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

      Please refer
      m.ruclips.net/video/Grs0gjeMPOY/видео.html

  • @jatin1688
    @jatin1688 3 года назад +2

    Can we use xilinx software for simulation?

  • @kritikasingh5106
    @kritikasingh5106 2 года назад +3

    Hello, I tried to run this code on xilinx..on spartan 6 board..with the verilog module and test bench..but I am not getting similar waveforms as the output…I am getting red waveform. Can you please help me out.

  • @alexandru-valentinlucan7272
    @alexandru-valentinlucan7272 3 года назад +2

    can you make the same project, but in vhdl ?

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

      Yes Alexandru-Valentin Lucan this project can be made in vhdl as well.

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

    Heyy !! well the video was great and it has really helped us understand the logic but can you pls help me understand what constant/clock values to set to get the desired waveform bcoz I'm not getting the desired waveform and also what time to set in that !!!!!

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

      Also how is the ps and count appearing there?

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

      @@sanskargemawat5600 did you find any solution for this? I have the same problem.

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

      @@anirudhmakuluri5100 Not really!!!

  • @maddalarachana9350
    @maddalarachana9350 3 года назад +2

    I have a doubt why should have u been taken as (3:0) vector for count.

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

      We have taken (3:0) for count since we have 6 states the lower vector (2:0) would only have 4 states .

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

    Amazing 👏👏

  • @014-kotlasrinithareddy5
    @014-kotlasrinithareddy5 11 месяцев назад

    Super explanation

  • @mr.chiragsinghal8268
    @mr.chiragsinghal8268 2 года назад +2

    bro can u make project in image processing in verilog

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

    I thinkit is (2:0)count vector.please clarify the doubt if i say wrong

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

      We have taken (3:0) for count since we have 6 states the lower vector (2:0) would only have 4 states .

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

    Hi!!
    I have some doubt in the state table that why you have taken 001 as green, 010 as yellow, 100 as red particularly??

    • @Zahra27756
      @Zahra27756 6 месяцев назад

      its RYG, so for active green and other colours as inactive, its 001

  • @gowrikulkarni8340
    @gowrikulkarni8340 10 месяцев назад +1

    when i run this code it is showing error

  • @bharathkrishna5917
    @bharathkrishna5917 3 года назад +2

    Bro can I execute the code in Xilinx or Cadence tool ??

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

    Well done 🤩👍🏻

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

    Bro counter and ps waveforms are not showing,please tell

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

    How to run this on EDA playground? Can you pls explain??

  • @anujgupta-yw1ic
    @anujgupta-yw1ic 4 года назад +1

    I didn't understand the state table. Where are the values when its propating from s1 to s2.

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

      At time 07:54 when we look at the state table we can see columns of light M1 ,ME,MT and S where each of the light is represented as {RED YELLOW GREEN },for example 010 means red is off ,yellow is on and green is off. I hope this resolved your doubt. Any further questions are most welcomed .

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

    1.Hi Arjun! a small query. How to differentiate whether it is mealy or moore FSM based on state diagram. In this case , it is written mealy(traffic light). Can we not make same project in mealy. How does state diagram change then.
    2. reg count without initializing it to zero value, how code is running. Plz help. In testbench also it was started with rst=0

  • @rakeshbykanollu5711
    @rakeshbykanollu5711 Год назад +1

    Input values what should we take
    Bro I tried but not coming same output as in the video and in code no errors plz help me

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

    Which fpga board have been used

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

    Hey which IEEE paper did u refer?

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

    Can we use a FPGA board?

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

      Yes M SUDHANSHU we can use a Basys3 board for the project.

  • @rohansharma8210
    @rohansharma8210 3 года назад +2

    I am not getting count and ps in my waveform. Can you tell me how can I get it. Nice project btw!

    • @ArjunNarula1122
      @ArjunNarula1122  3 года назад +2

      You might not have selected them while simulating the waveform.

    • @rohansharma8210
      @rohansharma8210 3 года назад

      @@ArjunNarula1122 How to select them?

  • @ruthurelectronicsinstrumen4033

    helloo. how to implement this on hardware?

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

    What is the full form of ST in state table?

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

    What does it mean for M1 M2 MT S

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

      These are the various street lights situated on the roads. For details please refer 00:20 .

  • @TravelandAdventure496
    @TravelandAdventure496 6 месяцев назад

    where are you writing this codee

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

    Does this project looks good in resume for companies like TI,Qualcomm

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

      Hi Prateek,
      I had this project in my resume when I got an Internship at Texas Instruments, although I would strongly recommend you not to copy the project. The sole reason for uploading it was to share the knowledge I received when I learned Verilog.

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

    We can use Sparten 6kit to implement the design

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

    Is there FPGA present?

  • @pranavreddy1245
    @pranavreddy1245 3 месяца назад

    how to simulate pls tell brother

  • @ujwalagopi4445
    @ujwalagopi4445 3 года назад +2

    I am getting an error in simulation process

    • @ArjunNarula1122
      @ArjunNarula1122  3 года назад

      Please let me know the error by posting here.

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

      @@ArjunNarula1122 I get the waveform after correcting the test bench code

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

      Hello can please send test bench

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

    Hii ,I'm Ishwarya can I get the verilog code for this.

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

      Hi Ishwarya ,you can find the code here
      github.com/Arjun-Narula/Traffic-Light-Controller-using-Verilog/blob/master/Verilog%20code

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

    Hello sir i get error plz help me

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

      Hi khanoo, Can you please the error you are facing.

  • @ShoaibMalik-my4bq
    @ShoaibMalik-my4bq 2 года назад +1

    How can I get it's code?

    • @ArjunNarula1122
      @ArjunNarula1122  2 года назад +2

      You can find the code here github.com/Arjun-Narula/Traffic-Light-Controller-using-Verilog
      Do consider subscribing the channel.

    • @ShoaibMalik-my4bq
      @ShoaibMalik-my4bq 2 года назад

      Thanks dear Arjun, It's so helpful.

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

    Ur test bench is showing only one state in FPGA kit

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

    Please help me to solve test bench

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

      Initially there's the declaration.
      Then I have toggled the reset and initialised the clock.
      Where exactly are you facing issues?

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

      Thanks for replying the problem was solved

  • @BharathKumar-w8t8m
    @BharathKumar-w8t8m 9 месяцев назад

    Hi sir great explanation sir
    Can u send me the documentation and ppt sir

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

    is there video for how to implement this using a fpga board?

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

    Please I want butterfly structure coding vlsi

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

    Tool name?

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

    Objectives of this project

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

    Bro send me pdf bro