a) Draw the ASM chart for the module above. b) Explain very clearly what this program...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
a) Draw the ASM chart for the module above. b) Explain very clearly what this program actually does. module test(y, x, reset, clock); output y input x, clock ,resel; reg y; reg [1:0] state, next_state; parameter S0-2'600, S1-2'b01, S2-2'b10, S3-2'b11; always @ (posedge clock or negedge reset) if (reset==0) state<=S0; else state<= next_state; always @ (state, x) case (state) SO: $1: if (x) next_state = $1; else next_state = S0; if (x) next_state = S3; else next_state = S0; if (-x) next_state = S0; else next_state = S2; S3: if (x) next_state = S2; else next_state = S0; endcase S2: always @ (state, x) case (state) SO: $1, S2, S3: endcase endmodule y=0; y=~x; a) Draw the ASM chart for the module above. b) Explain very clearly what this program actually does. module test(y, x, reset, clock); output y input x, clock ,resel; reg y; reg [1:0] state, next_state; parameter S0-2'600, S1-2'b01, S2-2'b10, S3-2'b11; always @ (posedge clock or negedge reset) if (reset==0) state<=S0; else state<= next_state; always @ (state, x) case (state) SO: $1: S2: if (x) next_state = $1; else next_state = S0; if (x) next_state = S3; else next_state = S0; if(-x) next_state = S0; else next_state = S2; S3: if (x) next_state = S2; else next_state = S0; endcase always @ (state, x) case (state) SO: $1, S2, S3: endcase endmodule y=0; y=~x; a) Draw the ASM chart for the module above. b) Explain very clearly what this program actually does. module test(y, x, reset, clock); output y input x, clock ,resel; reg y; reg [1:0] state, next_state; parameter S0-2'600, S1-2'b01, S2-2'b10, S3-2'b11; always @ (posedge clock or negedge reset) if (reset==0) state<=S0; else state<= next_state; always @ (state, x) case (state) SO: $1: if (x) next_state = $1; else next_state = S0; if (x) next_state = S3; else next_state = S0; if (-x) next_state = S0; else next_state = S2; S3: if (x) next_state = S2; else next_state = S0; endcase S2: always @ (state, x) case (state) SO: $1, S2, S3: endcase endmodule y=0; y=~x; a) Draw the ASM chart for the module above. b) Explain very clearly what this program actually does. module test(y, x, reset, clock); output y input x, clock ,resel; reg y; reg [1:0] state, next_state; parameter S0-2'600, S1-2'b01, S2-2'b10, S3-2'b11; always @ (posedge clock or negedge reset) if (reset==0) state<=S0; else state<= next_state; always @ (state, x) case (state) SO: $1: S2: if (x) next_state = $1; else next_state = S0; if (x) next_state = S3; else next_state = S0; if(-x) next_state = S0; else next_state = S2; S3: if (x) next_state = S2; else next_state = S0; endcase always @ (state, x) case (state) SO: $1, S2, S3: endcase endmodule y=0; y=~x;
Expert Answer:
Related Book For
Fundamentals Of Digital Logic With Verilog Design
ISBN: 9780073380544
3rd Edition
Authors: Stephen Brown, Zvonko Vranesic
Posted Date:
Students also viewed these computer network questions
-
Joe is a 2 5 - year - old Caucasian male from a working class background. How might his family life be different than if he were living in the 1 9 4 0 s ? Cherlin article explores these differences.
-
Read the case study "Southwest Airlines," found in Part 2 of your textbook. Review the "Guide to Case Analysis" found on pp. CA1 - CA11 of your textbook. (This guide follows the last case in the...
-
Section 7.5 shows how to implement the traditional long division that is done by hand. A different approach for implementing integer division is to perform repeated subtraction as indicated in the...
-
The ordinary share capital of PP Ltd (a trading company) is owned 32% by QQ Ltd, 35% by RR Ltd and 23% by SS Ltd. The remaining 10% is owned by various individuals, none of whom own more than 1%. All...
-
Do we need more or less government intervention to decide WHAT, HOW, and FOR WHOM? Give specific examples.
-
Brave Advisors Service, Inc.'s trial balance on December 31, 2014, is as follows. The following information is also available: a. Ending inventory of office supplies, $264 b. Prepaid rent expired,...
-
A statistics teacher claims that, on the average, 20% of her students get a grade of A, 35% get a B, 25% get a C, 10% get a D, and 10% get an F. The grades of a random sample of 100 students were...
-
In Problem Sl-5 assume that Nicole, with the help of a financial newsletter and some library research, has been able to assign probabilities to each of the possible interest rates during the next...
-
Please answer these questions for Southwest What is your company's cost of debt? What is your company's cost of equity? What is your company's weighted average cost of capital? What's the company's...
-
Using the results of Problem 1.7, show that de r / d = e and de /d = e r . Data From Problem 1.7 Show that the unit vectors e r and e in a cylindrical coordinate system are related to the unit...
-
Meddy and her mother were abandoned by her father when she was still young. Her mother single - handedly raised her, trying every means to send her to school. Meddy is now working in a government...
-
Which potential environmental challenges must be taken into account by a company that uses personal selling as a promotional tool outside the home country?
-
Compare and contrast the main types of economic systems that are found in different regions of the world.
-
Identify some features of the Japanese lean production concept that could be implemented in a non-automobile industry.
-
VR technology was developed decades ago; in fact, a computer engineer and author named Jeron Lanier coined the term virtual reality in 1987. That was two years after Lanier left his job at Atari to...
-
Explain the stages a company goes through as its management orientation evolves from domestic and ethnocentric to global and geocentric.
-
You started a project on 9/29/2019. The project ended on How many working days did you have for the entire 08/01/2022. project?
-
The liquidliquid extractor in Figure 8.1 operates at 100F and a nominal pressure of 15 psia. For the feed and solvent flows shown, determine the number of equilibrium stages to extract 99.5% of the...
-
An FSM is defined by the state-assigned table in Figure P6.1. Derive a circuit that realizes this FSM using D flip-flops. Present state 2.31 00 01 10 11 Next state W = 0 Y2Y1 10 01 11 10 W = 1 Y2Y1...
-
Consider the circuit in Figure P5.4. How does this circuit compare with the circuit in Figure 5.16? Can the circuits be used for the same purposes? If not, what is the key difference between them?...
-
Convert the following binary numbers into decimal. (a) (110010) 2 (b) (1100100) 2 (c) (11001000) 2 (d) (110010000) 2
-
Briefly explain the connections between values such as effort optimism, utilitarian individualism, and the American economic system. Throughout this chapter, we have identified culture as something...
-
Do you speak a language other than English as a first language? If so, do you want your children and grandchildren to speak that language? In the United States, the tools of government and education...
-
If English is your first language, did your parents or grandparents speak a different first language? How do you feel about your ability (or lack of ability) in that language? In the United States,...
Study smarter with the SolutionInn App