Question
072 ASSIGNMENT Due Date: Start of week 12. See Moodle for the official deadline. Submission: Individual submissions via Moodle uploads. Assessment: 10% final mark. Plagiarism
072 ASSIGNMENT Due Date: Start of week 12. See Moodle for the official deadline. Submission: Individual submissions via Moodle uploads. Assessment: 10% final mark. Plagiarism or collusion can result in zero marks for the originator and the copier. Late Policy: 10% penalty per day unless an official special consideration is granted. Problem Description Design a counter that produces an output every clock cycle. The output sequence that each student downloads from Moodle contains 18 Binary Coded Decimal (BCD) digits that are unique to each student. Let’s call these output values V0, V1, V2, .. V17. The count sequence wraps around from V17 back to V0. Here is the normal count sequence: V0 V1 V2 V3 V4 V5 …V17 V0 V1 V2 V3 V4 V5 …. There are additional inputs with these properties: 1. iSkip – when asserted the next output skips two values (eg from V0 to V3 ). 2. iRev - when asserted the next output is the previous value in the sequence (eg goes from V3 to V2 ). 3. When both iSkip and iRev are 1, the counter combines these effects and skips just one value (eg goes from V0 to V2 ). 4. When neither iSkip nor iReverse are 1, the counter follows the normal sequence. 5. iRst – when 1 the next output value is V0. 6. iClk - Outputs are produced shortly after each rising Clk edge. Design your counter using two modules. Module CounterSkipReverse implements the state sequence of the counter in sequential logic. The module StateToCountSequence is a combinational logic circuit that maps the state to your BCD V output. Since your unique BCD V sequence necessarily contains repeated digits (there are 18 in the 2 sequence) the BCD output cannot act as the state of the counter, as often occurs with conventional counters. The design challenge here is to work out what state representation is appropriate. Implement your design with a minimum number of flip-flops using Verilog compiled with Quartus with the standard project settings for a DE2 board. See the assignment FAQ on Moodle for settings that may be required to ensure a minimum number of flipflops are compiled when a FSM is detected in your code by Quartus. Question 1 Download from Moodle your Verilog template file named assignID.v that defines your count sequence V0 V1 V2 V3 V4 V5 …V17 . Note that ID in assignID.v is your 8 digit ID number. This particular file must be used for your HDL code to solve the above counter problem. Complete the modules CounterSkipReverse, StateToCountSequence and CompleteCounter. The file assignID.v must not be shared with, or shown to anyone else. Do not delete lines in this file since this may invalidate your answer during a preliminary automatic compilation, marking, plagiarism and collusion checking phase. Manual marking and checking will be used after this. Download a new copy from Moodle if you accidently delete lines. Question 2 In your assignID.v file complete the testbench module AssignmentTestBench that enables ModelSim to check the correct functionality of your HDL design. Ensure that you test every transition from every valid state of your circuit. Since we have a reset action, we are not testing for self-starting here. Include up to four screen captures from ModelSim showing the testbench simulation with inputs, outputs and state of your design. Use appropriate display options to maximise readability. Question 3 Minimise the number of Logic Cells that your design requires after a synthesis compilation in Quartus with DE2 board settings. This will involve exploring different implementation strategies, checking them with your testbench and synthesising them in Quartus. Include a screen capture of Quartus that clearly shows the number of Logic Cells and “registers” (these are really flip-flops) after compilation for each module. 3 This screen capture must also show the time and date displayed on your computer. Here is an example (ignore the numbers since they are not applicable to your assignment): Question 4 Provide a photo of a neat, clear, hand drawn sketch of a synthesised representation of your Verilog design using the following logic components only: • Flip-flops/ registers • Multiplexers • AND, OR, NOT and XOR gates. • Adders, Subtractors and Comparators (equal, less than, less than equal). Show the signal names and the number of bits per wire that match your Verilog. See Problem Sheet 3 solution to problem 5.4 for an example. Sign and date this diagram in the bottom right corner in your own handwriting. By submitting this, you are acknowledging that this is your own work and not copied from others or shared with others. 4 Uploads (substitute your ID for ID below): WARNING: Using parts of anyone else’s file or allowing someone else to access or copy your file constitutes a collusion and plagiarism offence and will be treated as cheating. This may result in you failing the assignment and even being excluded from the university. assignID.v Q2_IDa.jpg , Q2_IDb.jpg, Q2_IDc.jpg , Q2_IDd.jpg (you can use .png files instead) Q3_ID.jpg or Q3_ID.png Q4_ID.jpg or Q4_ID.png A marking rubric will be released a week before the Moodle submission date. It will include marks allocated to the Good Style Guide below.
WWW.OZPAPERHELP.COM
Step by Step Solution
3.46 Rating (156 Votes )
There are 3 Steps involved in it
Step: 1
In the Description give a general explanation of the assignment Check the box if you want this description to display on the course page In Additional files you can add files which may be of help to t...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started