How many flip-flops will be required to implement

Assignment Help Software Engineering
Reference no: EM133441951

Question: Software design is an important process in software development lifecycle. However, a lot of software developer/house tends to ignore the process. Therefore, provide and explain 2 motivations on software design

What is a principal type scheme? Give the principal type scheme for N1, or explain informally why it does not have one.

Organize your work in a table with appropriately labeled a columns. Show the aligned sequences. Pseudo code for findLCS() appears after the pseudo code for cutRod(). int cutRod( int [] p ) Initialize. Set n to the length of the prices array p. Allocate space for an array r from 0 ton Set r[ o ] to 0 Loop for j from 1 to n inclusive Set q to -o0 for i from 1 toj inclusive if p[i] + r[ j - i] >q Set q to p[i] + r[j - i] set r[j ] to a Return r[n] int [][][] findLCS( sequence X, sequence Y) Initialize. Set m to the length of X and n to the length of Y. Declare two 2D arrays of size m+1 by n+1 named c and b. Loop for i from 1 to m inclusive forj from 1 to n inclusive if x[i] equals y[j] cli,j) = 1 + cli - 1, j - 1) bli, j) = NW else if cli - 1,j) = cli, j - 1) cli, j) = cli - 1,j) bli, j) = N else cli, j) = cli, j - 1) bli, j) = W Return the 2D arrays.What is the principal difference between a CAM and a RAM? [4 marks] (b) What is the difference between fully associative, set associative and direct mapped lookup? [6 marks] (c) Why are TLBs always much smaller than caches?

(d) Which of the lookup mechanisms in part (b) is usually used for a TLB and why aren't the other mechanisms usually used? 2 ECAD Consider the following mysterious Verilog module. module mystery(q,wr,a,s); input c,r,a; output [0] s; reg [2:0] s; always @(posedge c or posedge r) if(r) s<=01; else begin if(a && (s<17)) s<=s+1; else if(!a && (s>0)) s<=s-1; end endmodule

(a) How many flip-flops will be required to implement the mystery module, and how will signals c and r be connected to these flip-flops?

(b) What is the state transition diagram for this mystery module?

(c) If this module were synthesised to the minimum sum of products form, what would the equations be for next state bits s[0], s[1] and s[2]? 2 CST.2004.3.3 3 Data Structures and Algorithms.

Publication* getPub(int libRef) method, Which of the lookup mechanisms in part (b) is usually used for a TLB and why aren't the other mechanisms usually used? [6 marks] 2 ECAD Consider the following mysterious Verilog module. module mystery(c,r,a,s); input c,r,a; output [2:0] s; reg [2:0] s; always @(posedge c or posedge r) if(r) s<=0; else begin if(a && (s<7)) s<=s+1; else if(!a && (s>0)) s<=s-1; end endmodule (a) How many flip-flops will be required to implement the mystery module, and how will signals c and r be connected to these flip-flops? [5 marks] (b) What is the state transition diagram for this mystery module?

(c) If this module were synthesised to the minimum sum of products form, what would the equations be for next state bits s[0], s[1] and s[2]?

(b) Consider the use of a monad for input-output. For the purposes of this question, take the IO monad as including two operations readint and writeint which respectively read integers from stdin and write integers to stdout. Give the types of these operators.

(c) Assume MLreadint and MLwriteint are primitives with side effects for inputoutput and consider the ML expression add1 of type int: let val x = MLreadint() in MLwriteint(x+1); x end (i) Give an equivalent expression which uses the IO monad instead of side-effects, and state its type.

(ii) Give a function run2diff which can be applied to your answer to part (c)(i). When so applied it should give a value in the IO monad which corresponds to ML code that runs add1 twice and returns the difference between the values read. [4 marks] 2 CST.20204.3.3 3 Data Structures and Algorithms

(a) Describe how the Lempel Ziv text compression algorithm works, illustrating your answer by deriving the sequence of numbers and corresponding bit patterns it would generate when applied to a string starting with the following 24 characters: ABCDABCDABCDABCDABCDABCD ...

You may assume that the initial table is of size 256 (containing bytes 0 to 255) and that the codes for "A", "B", "C" and "D" are 65, 66, 67 and 68, respectively.

(b) Estimate how many bits the algorithm would use to encode a string consisting of 1000 repetitions of the character "A".

(d) a method to return the address of a Publication oabject in the PPA that has the library reference number matching the "libRef" argument. 4 Comparative Programming Languages

(a) Discuss to what extent a programmer can expect a program that conforms to a standard to generate identical results when run under different conforming compilers on different machines.

(b) ALGOL 60 provided call by value and call by name, Pascal provided call by value and call by reference, and ALGOL-W provided a variety of calling methods including call by result and call by value-result.

Reference no: EM133441951

Questions Cloud

What is morality based on for virtue ethics : What is morality based on for virtue ethics? What exactly is moral virtue? How is moral virtue developed, and and in what way is virtue a mean?
Are they incompatible, but interesting to juxtapose or mix : Are they incompatible, but interesting to juxtapose or mix?" "Or, at the other extreme, are they fundamentally the same activity, and it's the business of art
What kind of careers align : What kind of careers align with what you know about your intelligences? What are some skills associated with those intelligences
Why is epistemology considered a normative discipline : Why is epistemology considered a normative discipline?
How many flip-flops will be required to implement : How many flip-flops will be required to implement the mystery module, and how will signals c and r be connected to these flip-flops?
Explain the same-evidence argument for intelligent design : Explain the "Same-Evidence Argument" for Intelligent Design and Hume's objection to it. Then explain the "Best-Explanation Argument" for Intelligent Design
Why do consumers buy fair trade products : After studying this chapter, are you more likely or less likely to buy fair trade coffee? Why or why not? Is there another way of achieving the objectives
Explaining how it fits with iris marion young analysis : explaining how it fits with Iris Marion Young's analysis of structural injustice. Then, using Young's four factors that contribute to how individuals should
How can sustainability improve the triple bottom line : How can sustainability improve the triple bottom line? Is improvement in one area of the TBL more important than other areas?

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd