Questions
Verilog counter problem: Using the attached 4-bit up-counter module and testbench as a template, write a...

Verilog counter problem:

Using the attached 4-bit up-counter module and testbench as a template, write a Verilog module that implements a certain 4-bit counter. The module should include two more input variables: “updown” and “count2”.

If “updown” is 1, the circuit should count up (by 1s); if it is 0 it should count down (by 1s).

If “count2” has a value of 1, the circuit should instead count up by 2s; otherwise it will have no effect (the circuit counts normally up or down by 1s).

(Hint: use “if” and “else if” statements. After checking the “Resetn” value, check the value of “count2”).

Simulate the module in EDA Playground. In the testbench, use the following input signals:

    Clock = 0;                       // initial value

    updown = 1;                  // initially count up

    count2 = 0;                    // count-by-2 disabled

    Resetn = 0;                    // reset active

    En = 1;                                           // enable active

    #10

    Resetn = 1;                    // reset disabled

    #40

    updown = 0;                  // count down

    #80

    count2 = 1;                    // count-up-by-2 enabled

    #40

In: Electrical Engineering

Resolve Example 6.20, except with the generation at bus 2 set to a fixed value (i.e.,...

Resolve Example 6.20, except with the generation at bus 2 set to a fixed value (i.e., modeled as off of AGC). Plot the variation in the total hourly cost as the generation at bus 2 is varied between 0 to 200 MW in 5-MW steps, resolving the economic dispatch at each step. What is the relationship between bus 2 generation at the minimum point on this plot and the value from economic dispatch in Example 6.20? Assume a load scalar of 1.0

Example 6.20: PowerWorld Simulator case Example 6_20 uses a five-bus, three-generator lossless case to show the interaction between economic dispatch and the transmission system (see Figure 6.19). The variable operating costs for each of the units are given by C1 = 10P1 + 0.016P 1 Square $yhr C2 =8P2 + 0.018P2 Square $yhr C4 = 12P4 + 0.018P 4 Square $yhr where P1, P2, and P4 are the generator outputs in megawatts. Each generator has minimum/maximum limits of 100 <=P1 <=400 MW 150 <=P2 <= 500 MW 50 <= P4 <=300 MW In addition to solving the power flow equations, PowerWorld Simulator can simultaneously solve the economic dispatch problem to optimally allocate the generation in an area. To turn on this option, select Case Information, Aggregation,
Areas… to view a list of each of the control areas in a case (just one in this example). Then toggle the AGC Status field to ED. Now anytime the power flow equations are solved, the generator outputs are also changed using the economic dispatchInitially, the case has a total load of 392 MW with an economic dispatch of P1 =141 MW, P2 = 181, and P4 = 70, and an incremental operating cost, l, of 14.52 $?MWh. To view a graph showing the incremental cost curves for all of the area generators, right-click on any generator to display the generator’s local menu, and then select All Area Gen IC Curves (right-click on the graph’s axes to change their scaling). To see how changing the load impacts the economic dispatch and power flow solutions, first select Tools, Play to begin the simulation. Then, on the oneline, click on the up/down arrows next to the Load Scalar field. This field is used to scale the load at each bus in the system. Notice that the change in the Total Hourly Cost field is well approximated by the change in the load multiplied by the incremental operating cost. Determine the maximum amount of load this system can supply without overloading any transmission line with the generators dispatched using economic dispatch.

In: Electrical Engineering

You are designing a satellite communications system with the following parameters: Satellite parabolic antenna has a...

You are designing a satellite communications system with the following parameters:


Satellite parabolic antenna has a diameter of 1 meter

Earth Station parabolic antenna has a diameter of 2.5 meters

Operating frequency of the system is 4 GHz

Transmission system bandwidth of 106 Hz

Satellite transmitter power of 10 watts

Assume earth receiver operating at room temperature (294 kelvin)

a. What is the maximum distance the satellite can be from earth, in kilometers, so that the SNRdb at the earth station is no less that 0db?

b. The ideal (non noise) maximum data rate for this channel is?

c. The maximum data rate with consideration for noise on this channel is?

In: Electrical Engineering

In Matlab, Design a model for a bandpass filter with a bandwidth of 4000 Hz, and...

In Matlab, Design a model for a bandpass filter with a bandwidth of 4000 Hz, and a center frequency as specied below. Once you have the model, it is easy to programmatically change the center frequency.

center frequency: 20 KHz, 24.5 KHz, 29 KHz, 33.5 KHz, 38 KHz, 42.5 KHz, 47 KHz

In: Electrical Engineering

In Matlab, Design a model for a bandpass filter with a bandwidth of 4000 Hz, and...

In Matlab, Design a model for a bandpass filter with a bandwidth of 4000 Hz, and a center frequency as specied below. Once you have the model, it is easy to programmatically change the center frequency.

center frequency: 20 KHz, 24.5 KHz, 29 KHz, 33.5 KHz, 38 KHz, 42.5 KHz, 47 KHz

In: Electrical Engineering

Design a parallel RLC circuit to have an a) overdamped, b) underdamped, and c) critically damped...

Design a parallel RLC circuit to have an a) overdamped, b) underdamped, and c) critically damped voltage response. Use matlab to plot the responses on the same graph, labeling each response with the component parameter values. What are the pros/cons of each type of second-order design?

In: Electrical Engineering

Someone enjoys their coffee at a temperature of 70.0C. The liquid coffe has a mass 470g...

Someone enjoys their coffee at a temperature of 70.0C. The liquid coffe has a mass 470g and must be raised in temperature by 50.0C immediately prior to enjoyment. The specific heat of water is 4.18 joules/(g * C). A standard microwave oven is used to facilitate the transfer of morning energy into the moring coffee. A) if the microwave operates at 80.0% efficiency, how much power output is actually required to perform this task in 120 seconds (answer in kW). B) if the kitche circuit is maintained at standard 120 volts, how much current will the microwave oven be demanding from the kitchen during this 120 sec. microwave opereration (answer in ampere)

In: Electrical Engineering

Use matlab to solve the following: A field-controlled DC motor can be described by the following...

Use matlab to solve the following:

A field-controlled DC motor can be described by the following differential equation:

ay3(t)+by2(t)+cy1(t) = dx(t)

Where y(t) is the angle displacement of the motor’s load and x(t) is the applied voltage to the motor. The applied voltage is DC that turns on at t = 0, which is a step function. The values for a,b,c and d are derived from the model of the field controlled DC motor. This is a concept that is slightly advanced from this class. For now, go with this:

% Motor Parameters

J = .01; % Gain (positive)

f = .10; % Friction (0

Rf = 10;

Lf = .01;

kt = 10;

% System coefficients

a = J;

b = f+ J*Rf/Lf;

c = f*Rf/Lf;

d = kt/Lf;

(1) Plot the impulse response and the step response of the system.

(2) Analyze the plots by answering these questions:

(a)If an impulse is applied, how many degrees does the motor turn? And how long does it take to turn those degrees?

(b)After 1 minute of applying a step voltage (1 volt DC), how many revolutions of the motor ? How many revolutions if the DC voltage applied is 12 volts ?

(c)The only parameters we can control in the motor are J, f, and the input voltage x(t). Play with these to evaluate the motor. In other words try a few different sets of values for J, f, and the input voltage x(t) and explain what happens.

In: Electrical Engineering

What happens if the generator is connected up to the mains asynchronously?

What happens if the generator is connected up to the mains asynchronously?

In: Electrical Engineering

Work out and derive Gauss Law Of Electricity, in interval form write what your doing for...

Work out and derive Gauss Law Of Electricity, in interval form write what your doing for each step and write neatly please. Thumbs up for correct and clear answers!!

In: Electrical Engineering

A)  Design 0?379 count?up counter with BCD counter blocks if input clear signal is synchronous. B) Design...

A)  Design 0?379 count?up counter with BCD counter blocks if input clear signal is synchronous.

B) Design 0?379 count?up counter with BCD counter blocks if input clear signal is Asynchronous.

C) Design of 1/577 frequency divider with BCD count?up counters (Clear signal is Asynchronous)

In: Electrical Engineering

explain the different levels of the PCI compliance (Payment Card Industry Security Standards Council) and what...

explain the different levels of the PCI compliance (Payment Card Industry Security Standards Council) and what needs to be done for a corporation to satisfy the PCI requirements for the Level 4 (small-to-medium sized business)

In: Electrical Engineering

Design a digital PID controller based on the Ziegler_Nichols method for for the following system: G(s)=1/((s+1)^4...

Design a digital PID controller based on the Ziegler_Nichols method for for the following system:

G(s)=1/((s+1)^4 )

use the sampling time of T=0.1 seconds and simulate the resulting controlled system by applying a unit

step and then changing the value of input to another value after some appropriate time

Discus the effect of set point change.

In: Electrical Engineering

Bipolar junction transistor V-VBE=B*IB+D*IC what does it mean​ B=? and D=? SI=dIC/dICBO=(1+hfe)*B/(B+D*hfe) IF B,D=0 SI=? AND...

Bipolar junction transistor

V-VBE=B*IB+D*IC

what does it mean​ B=? and D=?

SI=dIC/dICBO=(1+hfe)*B/(B+D*hfe) IF B,D=0 SI=? AND B=D SI=?

SV=dIC/dVBE=(-hfe)/(B+D*hfe) IF B,D=0 SV=? AND B=D SV=?

SH=dIC/dhfe=ICQ*B/(hfe*(B+D*hfe)) IF B,D=0 Sh=? B=D Sh=?

In: Electrical Engineering

Engineering Ethics Course Rights and Responsibilities of Engineers chapter 1-An engineer leaves a company and goes...

Engineering Ethics Course

Rights and Responsibilities of Engineers chapter

1-An engineer leaves a company and goes to work for a competitor. Is it alright for the engineer to use proprietary knowledge gained while working for the previous employer at the new job? Justify your answer.

2. You hold a position on a commission charged with selecting and approving construction contracts for the city. For a specific construction contract, one of the bidding companies employs one your relatives. If you choose to participate in the selection/approval process for this contract, does this represent a conflict of interest? If so, what type of conflict of interest is it?

3. What are the 4 criteria that must be met for whistle-blowing to be attempted?

In: Electrical Engineering