Question: Write a VHDL code that meets the following requirements: design a music box, which satisfies the minimum requirements below. 1 . Users are able to
Write a VHDL code that meets the following requirements: design a music box, which satisfies the minimum requirements below.
Users are able to select and switch between any one of the three
modes Mode A Mode B and Mode C to play music.
Stop buttonswitch works for all three modes.
LEDs work for all three modes.
Segment Display works for all three modes.
Only one mode can be active at any time.
Your system should handle when users dont follow rules. Error
Handling: Your system should never break down.
Mode A Default Mode:
Music is played by switches.
Putty on your PC should show the tones being played timely.
You need to tune the frequency for sending each
numbered note character back to Putty so that the melody
is readable from Putty.
Mode B:
Music is played from Bram.
Putty on your PC should show the tones being played timely.
Mode C:
Music is played by users entering numbered music notation on
Putty.
Each numbered music notation transmitted from Putty should
play seconds.
Each numbered music notation entered should be echoed
back to Putty. Lab
The system should handle when users enter invalid
characters. components entities: entity receiver is
port
clk : in stdlogic; clock input
reset : in stdlogic; reset, active high
sdata : in stdlogic; serial data in
pdata : out stdlogicvector downto ; parallel data out
ready : out stdlogic ready strobe, active high
;
end receiver; entity transmitter is
port clk : in stdlogic; clock input
reset : in stdlogic; reset, active high
pdata : in stdlogicvector downto ; parallel data in
load : in stdlogic; load signal, active high
busy : out stdlogic; busy indicator
sdata : out stdlogic; serial data out
end transmitter; entity SwitchPiano is
Port
clk : in stdlogic; clock input
reset : in stdlogic; reset, active high
switch : in stdlogicvector downto ; switches
stop : in stdlogic;
LED : out stdlogicvector downto ;
freq : out stdlogic; Audio output
gain : out stdlogic; Gain control
shutdown : out stdlogic Shutdown control
;
end SwitchPiano; entity AutoPiano is
Port
Clk : in STDLOGIC;
switch : in STDLOGICVECTOR downto ;
stop : in STDLOGIC;
freq : out STDLOGIC;
LED : out STDLOGICVECTOR downto ;
gain : out STDLOGIC;
shutdown : out STDLOGIC;
an: out STDLOGICVECTOR downto ;
cat: out STDLOGICVECTOR downto ;
notein : in STDLOGICVECTOR downto Input note from memory
;
end AutoPiano;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
