The objective of this lab is to practice your Verilog coding and the design of a Finite State Machine. Lab Goal: For this lab, you will code a Verilog module to implement the FSM described in this document. This lab will also require that you use the Seven - Segment Display on the DE0 - CV FPGA board. Design Specifications for the FSM Implem ent the following simple state machine on the DE0 - CV FPGA board. This FSM will have 5 states. The clock to this FSM will be provided by yourself using KEY0 (one of the push buttons on the board). Include a debounce module in your code but do not use it. S o you write the code as described in the lecture, but there should be no debounce module instance. I want you to understand this module but it is unnecessary on our board. The transitions from any one state to another are determined by switches 0 through 4 of the board (SW0, SW1, SW2, SW3, and SW4) as shown in the state diagram below. This will be easier than using pushbuttons for the inputs to switch to states. That means you set the switch and then clock it using KEY0. It really only matters what the swi t ch positions are when the clock edge occurs. NOTE reiterating this use slide s witches not pushbuttons for input. Use KEY0 for the clock, and generate the clock signal by hand by pushing KEY0. Any input transition not explicitly referenced in the diagram keeps the machine in the same state. Moreover, if two or more switches are asserted simultaneous ly, no transition should occur. SW0 acts as the rese t and should reset the FSM to S 00 regardless of all other switches or the pushbutton. (note you could use K EY1 pushbutton instead but it isn’t clear that would be better). How to write your code: Study Lecture 9 section 3 on how to write a Finite State Machine in Verilog. Your code will have two parts. There will be a synchronous part which is the part models the flip flops. An example of this is Lecture 9 slide 33. The other part is the combinatorial part, which is the part that feeds the inputs to the flip flops, that is like the code in Lecture 9 slides 29 through 32. This i
In: Electrical Engineering
Read the following scenario and complete each of the seven problems below:
A new car manufacturing company has emerged and has claimed that its new hybrid car, the Pusho, gets a better gas mileage than the highest ranked Toyota Prius. Consumer Reports Magazine decides to test this claim at a 5% level of significance. Consumer Reports randomly selects 10 of each type of car, calculates the miles per gallon for each car in the study, and records the data in the table below. Assume miles per gallon of the cars is normally distributed.
Pusho 54.1 52.4 55.7 49.7 50.6 48.9 51.8 54.5 56.9 49.8
Prius 53.2 54.3 49.8 50.1 50.5 56.1 47.8 53.4 56.8 48.7
A. Evaluate the claim that the Pusho gets a better gas mileage than the highest ranked Prius using the data from the Consumer Reports study.
1. Identify the type of test you will use to test this claim. Explain your reasoning. 2. State the null and alternate hypotheses. 3. Conduct the hypothesis test and determine the p-value. 4. State your conclusion about the claim. 5. Construct a 90% confidence interval for this study.
1.
2.
3.
4.
5.
Suppose that Toyota makes a counter-claim that their Prius has a higher gas mileage than Pusho. How could the alternative hypotheses from Part A be changed to test Toyota’s claim? Conduct the hypothesis test at the 5% level of significance for Toyota’s claim using the data above and determine the p-value. State your conclusion about the claim. Construct a 98% confidence interval for this study.
1.
2.
3.
4.
C. Based on your analysis of both claims from the makers of Pusho and Prius, what statement can be made about the miles per gallon of the two cars? Explain your reasoning.
In: Statistics and Probability
CS3323
Homework 4 (Week 4: Chapter 12, 13)
1. List three characteristics that can serve as a guide to evaluate design quality.
(Section 12.2.1)
2. Explain how effective modular design is achieved through functional independence of the
individual modules?
(Section 12.3.5)
3. Describe the principle of information hiding as it applies to software design.
(Section 12.3.6)
4. What are the elements that make up a software architectural style?
(Section 13.3)
5. What is an archetype?
(Section 13.6.2)
6. Explain the key differences between thin client architectures and a rich client architectures.
(Section 13.6.6)
In: Computer Science
For a binomial parameter, p, we would like to test H 0 : p 0 = 0.05 against H 1 : p 0 ≠ 0.05 at the 5% level of significance. Assume we have a sample of 200 trials.
a. Is 200 large enough to use our large-sample test for p? Answer Yes or No and present your evidence as a series of inequalities.
b. What test statistic would you use for the test?
c. What sampling distribution would you use for the test?
d. State the decision rule you would use to perform the test
e. What is your conclusion if your sample contains 16 successes out of the 200 trials? Explain your choice.
f. Would your conclusion change if we changed H 1 to p 0 > 0.05 ? Answer Yes or No and explain.
In: Statistics and Probability
(a) Calculate the five-number summary of the land areas of the states in the U.S. Midwest. (If necessary, round your answer to the nearest whole number.)
| minimum | square miles ? |
| first quartile | square miles ? |
| median | square miles ? |
| third quartile | square miles ? |
| maximum | square miles ? |
| State | Area (sq. miles) |
State | Area (sq. miles) |
|---|---|---|---|
| Illinois | 55,584 | Missouri | 68,886 |
| Indiana | 35,867 | Nebraska | 76,872 |
| Iowa | 55,869 | North Dakota | 68,976 |
| Kansas | 81,815 | Oklahoma | 68,595 |
| Michigan | 56,804 | South Dakota | 75,885 |
| Minnesota | 79,610 | Wisconsin | 54,310 |
(b) Explain what the five-number summary in part (a) tells us about
the land areas of the states in the midwest.
(c) Calculate the five-number summary of the land areas of the
states in the U.S. Northeast. (If necessary, round your answer to
the nearest whole number.)
| minimum | square miles |
| first quartile | square miles |
| median | square miles |
| third quartile | square miles |
| maximum | square miles |
| State | Area (sq. miles) |
State | Area (sq. miles) |
|---|---|---|---|
| Connecticut | 4845 | New York | 47,214 |
| Maine | 30,862 | Pennsylvania | 44,817 |
| Massachusetts | 7840 | Rhode Island | 1045 |
| New Hampshire | 8968 | Vermont | 9250 |
| New Jersey | 7417 |
(d) Explain what the five-number summary in part (c) tells us about
the land areas of the states in the Northeast.
(d) Contrast the results from parts (b) and (d).
In: Math
In: Economics
In: Accounting
Unemployment
How do economists measure unemployment? Why is unemployment not a perfect measure of joblessness? Visit the Bureau of Labor Statistics website and explore the national unemployment rate section. What is the current level of national unemployment? Has it increased or decreased? Explain why the unemployment rate has changed. (You can also talk about COVID-19)
In: Economics
In: Statistics and Probability
A researcher investigated the effects of green and red light on the growth rate of bean plants. The table below summarizes the heights (in inches) of bean plants from soil to first branching stem.
|
Light |
Sample Mean |
Sample Standard Deviation |
Sample Size |
|
Red |
8.36 |
1.50 |
17 |
|
Green |
8.94 |
2.78 |
25 |
(A – 10 pts.) Use the Pooled two-sample t-procedure to construct the 95% confidence interval for the difference in mean height for bean plants exposed to these two colors of light. (You do not need to interpret the confidence interval.)
(B – 8 pts.) Suppose that you wish to address the question of whether mean height differs for bean plants exposed to these two colors of light. State the null hypothesis and the alternative hypothesis, using appropriate notation. Clearly identify what each symbol represents. Do not attempt to conduct the test.
In: Statistics and Probability