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

แชร์
ฝัง

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

  • @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 - th-cam.com/video/Yt7no6rwCVk/w-d-xo.html
    ►Round Robin Arbiter in Verilog - th-cam.com/video/X6oJn7r9-8s/w-d-xo.html
    ►Vedic Multiplier in Verilog - th-cam.com/video/6M3nyyQfpHU/w-d-xo.html
    ►Clock with Alarm in Verilog - th-cam.com/video/pTk1H50e8bI/w-d-xo.html
    ►Washing Machine in Verilog - th-cam.com/video/iAoi9jTzxcI/w-d-xo.html
    ►N bit Multiplier in Verilog - th-cam.com/video/lmzCdx6gkdU/w-d-xo.html
    ►PWM Shift Register in Verilog - th-cam.com/video/Pz9sPflKpXc/w-d-xo.html

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

      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  3 ปีที่แล้ว +1

      @@anshumanpanigrahi7817 Perfect!

    • @mounikayalla9850
      @mounikayalla9850 3 ปีที่แล้ว +1

      Please help to simulate the test bench

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +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 7 หลายเดือนก่อน

      How to simulate pls tell

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

    Helped in my Assignment, thankyou Arjun! Well explained

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +1

      Glad to be of some help , you're most welcomed Yukta!!!

    • @pranavreddy1245
      @pranavreddy1245 7 หลายเดือนก่อน

      How to simulate

  • @ngoclevan2061
    @ngoclevan2061 3 ปีที่แล้ว +1

    I'm from Vietnam, thank you very much

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

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

  • @atushgoel7823
    @atushgoel7823 3 ปีที่แล้ว +1

    Amazing Project
    and very well explained.

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

  • @himanshuatri2689
    @himanshuatri2689 2 ปีที่แล้ว +1

    Informative video, big fan sir

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

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

    Awesome work!!

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

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

  • @ameykhobragade5802
    @ameykhobragade5802 3 ปีที่แล้ว +1

    tried it myself, good job

  • @HG-jl4ed
    @HG-jl4ed 3 ปีที่แล้ว +2

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

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +1

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

  • @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 2 ปีที่แล้ว

      Same problem is occured but I am using xilinx ISE 14.5

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

    Very informative! Thanks for this.

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

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

  • @ratnaprasad6522
    @ratnaprasad6522 3 ปีที่แล้ว +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  3 ปีที่แล้ว +1

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

  • @squirrelsvid1856
    @squirrelsvid1856 ปีที่แล้ว

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

  • @shivakumarshivakumard3897
    @shivakumarshivakumard3897 ปีที่แล้ว

    We can use Sparten 6kit to implement the design

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

  • @mr.chiragsinghal8268
    @mr.chiragsinghal8268 3 ปีที่แล้ว +2

    bro can u make project in image processing in verilog

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

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

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

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

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

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

  • @014-kotlasrinithareddy5
    @014-kotlasrinithareddy5 ปีที่แล้ว

    Super explanation

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

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

    • @ArjunNarula1122
      @ArjunNarula1122  4 ปีที่แล้ว +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 👏👏

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

    Can you explain how to simulate this in simulators?

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

      Please refer
      m.th-cam.com/video/Grs0gjeMPOY/w-d-xo.html

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

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

    Can we use xilinx software for simulation?

  • @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  3 ปีที่แล้ว +1

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

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

    Well done 🤩👍🏻

  • @Tw1sT-0h0
    @Tw1sT-0h0 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.

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

  • @ramkaranverma8862
    @ramkaranverma8862 3 ปีที่แล้ว +1

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

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +1

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

  • @madhavvaddemani7289
    @madhavvaddemani7289 4 ปีที่แล้ว +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?

  • @rakeshbykanollu5711
    @rakeshbykanollu5711 2 ปีที่แล้ว +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

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

  • @kritikasingh5106
    @kritikasingh5106 3 ปีที่แล้ว +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.

  • @rockyo372
    @rockyo372 3 หลายเดือนก่อน

    can i add this in my resume?

  • @sujithas9894
    @sujithas9894 ปีที่แล้ว

    What is the full form of ST in state table?

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

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

  • @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 10 หลายเดือนก่อน

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

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

    How to simulate please tell me

  • @MSUDHANSHU
    @MSUDHANSHU 3 ปีที่แล้ว +1

    Can we use a FPGA board?

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +1

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

  • @nagachoudendra5361
    @nagachoudendra5361 10 หลายเดือนก่อน

    Bro counter and ps waveforms are not showing,please tell

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

  • @ronixbhaskar8263
    @ronixbhaskar8263 3 ปีที่แล้ว +1

    Which fpga board have been used

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +1

      The default FPGA in vivado design suite.

    • @ronixbhaskar8263
      @ronixbhaskar8263 3 ปีที่แล้ว

      @@ArjunNarula1122 so how can I do in ise

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

    when i run this code it is showing error

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

    Hey which IEEE paper did u refer?

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

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

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

    What does it mean for M1 M2 MT S

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

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

  • @nehapatil8505
    @nehapatil8505 ปีที่แล้ว

    Is there FPGA present?

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

    I am getting an error in simulation process

    • @ArjunNarula1122
      @ArjunNarula1122  4 ปีที่แล้ว

      Please let me know the error by posting here.

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

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

    • @muhammadatif1972
      @muhammadatif1972 3 ปีที่แล้ว +1

      Hello can please send test bench

  • @mounikayalla9850
    @mounikayalla9850 3 ปีที่แล้ว +1

    Please help me to solve test bench

    • @ArjunNarula1122
      @ArjunNarula1122  3 ปีที่แล้ว +1

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

    • @mounikayalla9850
      @mounikayalla9850 3 ปีที่แล้ว

      Thanks for replying the problem was solved

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

  • @pranavreddy1245
    @pranavreddy1245 7 หลายเดือนก่อน

    how to simulate pls tell brother

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

    helloo. how to implement this on hardware?

  • @TravelandAdventure496
    @TravelandAdventure496 9 หลายเดือนก่อน

    where are you writing this codee

  • @BharathKumar-w8t8m
    @BharathKumar-w8t8m ปีที่แล้ว

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

  • @shivakumarshivakumard3897
    @shivakumarshivakumard3897 ปีที่แล้ว

    Ur test bench is showing only one state in FPGA kit

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

  • @bbharath8191
    @bbharath8191 ปีที่แล้ว

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

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

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

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

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

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

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