Compute the value of es or os for a given number n

Assignment Help Electrical Engineering
Reference no: EM13257045

Given a number N, the even sum of N, called ES(N), is the summation for N (if N is even) or N-1 (if N is odd) till 2. Similarly, the odd sum of N, OS(N), can be defined. For example, ES(10) = 10 + 8 + 6 + 4 + 2 = 30.

Compute the value of ES(N) or OS(N) for a given number N. First, you use switch 0 to represent ES or OS. We use switch[0] = 0 to indicate the computation of ES(N) and switch[0] = 1 to indicate the computation of OS(N). Then, we use switches 1 to 7 to input the value of N.

First, you design a Verilog module that can implement the ES or OS function depending on the value of switch[0]. Second, you design another Verilog module to implement the controller that can control the entire process. Third, the clock_down_coverter module used in Lab 9 is included to give necessary low-speed operation such that you can observe the execution steps. Fourth, a top module is designed to integrate all modules as a complete digital system. Finally, displayed the binary result to the LEDs, LD0-LD7.

Reference no: EM13257045

Questions Cloud

Write an argumentative essay on given topics : Write an Argumentative Essay - Choose one topic from the list below and write an essay of approximately 1000 to 1200 words
Journalize the declaration of stock dividend on december : On January 1, 2008, Deweese Corporation had $ 1,000,000 of common stock outstanding. Journalize the declaration of a 15% stock dividend on December10, 2008, for the following independent assumptions
Discuss agent regulation : Discuss "Agent Regulation" in terms of state regulations vs. uniform lawsDiscuss "Agent Regulation" in terms of state regulations vs. uniform laws.
What is the expected rate of return on a portfolio : What is the expected rate of return on a portfolio? How is it calculated? Is there another (i.e. on alternative) way to calculate this?
Compute the value of es or os for a given number n : Compute the value of ES(N) or OS(N) for a given number N. First, you use switch 0 to represent ES or OS. We use switch[0] = 0 to indicate the computation of ES(N) and switch[0] = 1 to indicate the computation of OS(N).
A public assistance housing complex : One Sandwich Blitz location is near a public assistance housing complex,
Credit manager on the financial statement items : In your opinion, what could be the possible effects of following the advice of the credit manager on the financial statement items?
How do you define that measure : In situations where expected rate on invested differ substantially, standard deviation may not provide a good picture of one investment's stand-alone risk relative to another. In this situation what other measure of risk would you use? How do yo..
The emperors purpose for such an elaborate burial place : It is believed that the workers were forced to remain inside the tomb when it was walled shut so they would not reveal the secrets of its construction.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  What margin is required for the max junction temperature

An amplifier is to have an input of 100watts. Its effeciency is 75%, what is the maximum ambient temperature wherein this amplifier may be placed with a maximum junction temperature of 200degC and a junction to case thermal resistance.

  Calculate the maximum value of the resistor

Assume the existence of the following Java GUI application. There are two text fields for user input. The first JTextField variable is named res1 and is used to input a resistance value in ohms. The second JTextField variable named tol is used to ..

  How many decibels is system inferior to dsb- sc modulation

The average noise power per unit bandwidth measured at the front end of an AM receiver is 10^(-3) watt per Hertz. The modulating wave is sinusoidal, with a carrier power of 80 kilowatts, and a sideband power of 10 kilowatts per sideband.

  Explain what is the advantage of a synchronous counter

Flip-flops must be in what mode (Set, Reset, Hold, or Toggle) in order to divide a clock's frequency when building a counter What is the advantage of a synchronous counter as compared to a ripple counter

  What is the speed of light in the two materials

An incident wave of light travels through glass (n = 1.4) to water (n = 1.33) at an angle of 350. a. What is the angle of reflection and refraction b. What is the critical angle for this system

  Design a series resonant circuit to have a bandwidth

Design a series resonant circuit to have a bandwidth of 400 Hz using a coil with a Ql of 20 and a resistance of 2 ohm. Find the values of L and C and the cutoff frequencies.

  Write formulas of the compounds and an arrow followed by nr

You mix aqueous solutions of sodium iodide and lead(II) acetate. If a reaction occurs, write the balanced molecular equation and the net ionic equation. If no reaction occurs, indicate this by writing the formulas of the compounds and an arrow fol..

  What is the output power of the final amplifier stage

Three amplifiers with power gains of 15, 22 and 7 ate cascaded. The input power is 120 micro-W. What is the output power of the final amplifier stage

  What impedance does a driving generator have

A one-quarter wavelength piece of 75 ohm microstrip line has a capactive load of XC = 22 ohms. What impedance does a driving generator

  What is d in 6 bit signed 2s complement form of the number

the following binary numbers are all represented using 6 bit signed 2's complement. all addition should also be conducted in 2's complement form. A=111000; B=010110 (a) what is A's value in decimal

  Design band-pass filter consisting of an rc high-pass filter

a) Design a band-pass filter consisting of an RC high-pass filter with a cutoff frequency of 300 Hz and an RC low-pass filter with a cutoff frequency of 3400 Hz. Carefully select R and C of each filter so that one filter does not load the other

  Design an xor gate using standard cmos logic

Design an XOR gate using standard CMOS logic and with pass-transisitor logic and determine the number of transistors (NMOS and PMOS) required for each implementation.

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