Python Forum
Verilog HDL Programming to Python Programming?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verilog HDL Programming to Python Programming?
#1
Hello guys. I'm a college student and I'm a total newbie at programming. So apparently based on what I've researched, the following can only be done using verilog hdl programming. But our college professor challenged us to create a program using python language. I just want to ask if it's possible? And how would I play the output in the console? Is it even possible or do I have to install a simulation tool?

A slot machine has 2 panels. Each panel is controlled by a unique clock
frequency. When the start button is pressed, the panels start to rotate until the button is
released.

a) if the combination after 1st release is a 67 or 76, the player wins 1 token/coin –game over.
b) if the combination after first release is a pair of even number , the player is given a chance to press the start button again otherwise game over.
i. During the 2nd try, if the combination obtained is 6 and 6, the contestant is given one last chance to press the start button again. Otherwise game over.
c) if the combination obtained is a 77 regardless if it is 1st try or 2nd try or 3rd try, the contestant wins the jackpot.

Write the synthesizable code for the game machine. Your design should consist of at least the following modules:

a) a 0 to 7 counter.
b) a divided by 2 and divided by 7 frequency divider module for the clock signals that will drive the 2 panels.
c) a controller for the game machine.
Reply
#2
What have you been researching, and why do you think it needs to be done in Verilog? The use case for Verilog is very different from what you described, which leads me to believe you're searching for something specific, or there's more requirements to your assignment than you listed.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  programming different formulas in need of help noahneature 4 2,245 Oct-04-2020, 07:04 PM
Last Post: noahneature
  Programming Question anon47820 1 1,837 Jun-30-2020, 07:50 PM
Last Post: Yoriz
  Programming (identifier, literal and function call) ledangereux 5 4,901 May-05-2020, 12:37 PM
Last Post: gumi543
  Need urgent help in this question of Automata Programming Paradigm Satvik 5 3,261 Apr-27-2020, 06:05 PM
Last Post: buran
  Name Error: OO programming Pythonhelp82 2 1,801 Jun-30-2019, 10:22 AM
Last Post: Pythonhelp82
  How to correct the programming for KNN vokoyo 0 2,164 Apr-10-2019, 03:29 AM
Last Post: vokoyo
  How to correct the Python programming - Support Vector Machine vokoyo 7 4,363 Apr-06-2019, 10:11 AM
Last Post: scidam
  Socket Programming Help Djivan 3 2,655 Feb-21-2019, 01:55 PM
Last Post: Djivan
  Help for my assignment - Object Oriented Programming denizkb 5 5,026 Jan-05-2019, 06:43 PM
Last Post: stullis
  Basic Programming Help Travisbulls34 3 92,916 Sep-11-2018, 06:12 PM
Last Post: gruntfutuk

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020