I need the code for it this class is HDL logic simulation Gu

I need the code for it

this class is HDL logic simulation

Gulf Coast Vending is requesting proposals from any technically qualified source to design a device that will: sense how much money has been deposited as appropriate, cause (allow) a bottled/canned soft drink to be dispensed return appropriate change Responsive proposals will include A technical memo (TM) (format to be described later) that demonstrates skill in Verilog HDL and describes the operation of a simple device that dispenses one type of drink that costs $0.50 per bottle/can. All three requirements should be demonstrated. Appendices for this TM should include the Verilog HDL code as well the stimulus, as well as the output. A design for the actual device that builds on the contents of the TM. Proposals judged \"non-responsive\" will not be considered further. Responsive proposals will be ranked according to the following equally important criteria Technical capabilities of the proposing organization. Capability of the design to \"grow\" Cost: both total cost and cost judged as \"bang for the buck\" The point of contact (POC) at Gulf Coast Vending for this project is Philip Olivier. The POC will address questions at 10:10 AM CT on Mondays. Questions can be presented via email and will be shared with all parties preparing responses. Each respondent can have one private meeting with the POC prior to November 28, 2016. Preliminary Design Presentations begin on November 28, 2016. You should use all graded assignments in all courses (including this one) to convince the instructor that you have mastered the concepts, skills, knowledge etc associated with the course. Highest grade possible for a \"non-responsive\" proposal is C. Otherwise, grades will be based on how the proposals are ranked. The Technical Memo is Due November 28 (Monday after Thanksgiving break) The Proposal is your Final Exam and is due at the beginning of the scheduled Final Exam. Note that the \"lagniappe\" or something extra is partially built into the \"growth\' requirement.

Solution

module vendingMachine(nw_pa,clk,c,reset); output reg nw_pa; input [1:0] c; //c is the coin inserted which is an array input clk,reset; //clk is clock , reset is for the reset of machine reg [1:0] state; //gives initial state reg [1:0] nextState; // gives the next state parameter [1:0] S0=2\'b00; //for Rs. 0 parameter [1:0] S5=2\'b01;//for Rs. 5 parameter [1:0] S10=2\'b10;//for Rs. 10 parameter [1:0] S15=2\'b11; //for Rs.15 always @(posedge clk) begin if (reset) state=S0; else state=nextState; end always @(state,c) begin case (state) S0: begin if (c==2\'b00) nextState=S0; else if (c==2\'b01) nextState=S5; else if (c==2\'b10) nextState=S10; end S5: begin if (c==2\'b00) nextState=S5; else if (c==2\'b01) nextState=S10; else if (c==2\'b10) nextState=S15; end S10: begin if (c==2\'b00) nextState=S10; else if (c==2\'b01) nextState=s15; else if (c==2\'b10) nextState=S15; end S15: begin nextState=S0; end default : nextState=S0; endcase // case (state) end // always @ (state,nextState) always @(state) begin case (state) S0 : nw_pa<=1\'b0; S5 : nw_pa<=1\'b0; S10: nw_pa<=1\'b0; S15: nw_pa<=1\'b1; default: nw_pa<=1\'b0; endcase // case (state) end endmodule
I need the code for it this class is HDL logic simulation Gulf Coast Vending is requesting proposals from any technically qualified source to design a device th

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site