Write a Verilog file that specifies the desired circuit.

Status
Not open for further replies.

divyakn

Newbie level 1
Joined
Aug 20, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
8
Implement a 3-digit BCD counter. Display the contents of the counter on the 7-segment displays, HEX2��0.
Derive a control signal, from the 50-MHz clock signal provided on the DE1 board, to increment the contents of
the counter at one-second intervals. Use the pushbutton switch KEY0 to reset the counter to 0.


Can you please help me on the above problem?
I want Verilog code for the above.
 

Code:
module toplevel(clock,reset);
  input your_demand;
 
  always @ ( posedge clock)
    if (your_demand=give_me_some_code_I_don't_want_to_do_any_work)
      begin
        My_bank_account <= all_your_money;
      end
    else
      begin
      You_should_do_SOME_work_yourself_before_you_ask_others<=true
      end
endmodule
 
Reactions: rberek

    rberek

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…