+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Newbie level 5
    Points: 413, Level: 4

    Join Date
    May 2017
    Posts
    10
    Helped
    0 / 0
    Points
    413
    Level
    4

    An experiment at vivado verilog

    Hi i have an experiment at vivado.If i do this i will pass the course.So help me please.

    In this experiment we are trying to implement pool filling and discharging system. The way the system works is as follows:The amount of water in the pool will be shown instantaneously in one of the seven segment displays.If we press the btnR button pool will start to filling pool.When we do not press the btnC button system will stop the filling pool.When we press the btnL button pool will start to discharge pool and when we do not press the btnL button system will stop discharging pool.4 switch will gonna use(from 0 to 3).The filling / unloading speed will be entered into the system at 8 different levels with 4 switch.If the entered speed level is the highest (4'b1111 from the switches) then 2 liters per second will filling or discharging.If the entered speed step is the lowest(4'b0000 from swithces), 1 liter of filling / unloading will be done in 4 seconds.The pool can have a minimum of 0 to a maximum of 9 liters.To indicate that the pool is full led 15 must be blinked.((led[15]:1'b1)To indicate that the pool is empty led 14 must be blinked.(led[14]:1'b1)

    Sorry for bad english.I do not want to whole code.But if you can do this it would be magnificient thing for me.Please dont think you must do this alone.Instructor doesnt help us nor student assistants.If i run this code i will pass please help.Thank you.
    Last edited by ads-ee; 5th May 2017 at 23:59. Reason: non-English portions of post deleted

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 32,144, Level: 43
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    7,437
    Helped
    1742 / 1742
    Points
    32,144
    Level
    43

    Re: An experiment at vivado verilog

    Nobody is going to write this for you. You have to try to design this system and write the code yourself. If you get stuck on something or can't get something to work then post what you've done and someone will probably help you.

    If you don't even know how to start or how to code then sorry to say so, but you probably shouldn't pass this course. The whole point of projects like this are to prove you know the subject.



    •   AltAdvertisement

        
       

  3. #3
    Newbie level 5
    Points: 413, Level: 4

    Join Date
    May 2017
    Posts
    10
    Helped
    0 / 0
    Points
    413
    Level
    4

    Re: An experiment at vivado verilog

    no i did 4 experiment before that.The main thing is here how can i implement filling and discharging times.Maybe help of a frequency divider but i dont know how to implement it.
    And i want to ask:If we want to case statement can we use 2 outputs in the case for example:
    If switch=4'b1111 then 7segment decoder is 7'xxxxxxx and led=4'b111 or anything like that.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 9,036, Level: 22

    Join Date
    Apr 2016
    Posts
    1,891
    Helped
    332 / 332
    Points
    9,036
    Level
    22

    Re: An experiment at vivado verilog

    Quote Originally Posted by elessar95 View Post
    no i did 4 experiment before that.The main thing is here how can i implement filling and discharging times.Maybe help of a frequency divider but i dont know how to implement it.
    And i want to ask:If we want to case statement can we use 2 outputs in the case for example:
    If switch=4'b1111 then 7segment decoder is 7'xxxxxxx and led=4'b111 or anything like that.
    You are missing a lot of background knowledge. Of course you can have assignments to two outputs.
    Really, I am not Sam.



--[[ ]]--