Example:
A 3-address computer has 40 instructions, 16 Registers, and 256KB memory. Assume each instruction has three operands. Two registers and the third operand is a direct address location of a memory. Find minimum size of PC, MAR, MDR, IR.
Solution:
OPCODE R1, R2, address
OPCODE is 6 bits since 2^6>40
Register field is 4 bits since 2^4 =16
Memory field is 18 bits since 2^18=256K
Instruction length =6+4+4+18=32 bits
MDR=32 bits
IR=32 bits
MAR=18
PC=18
Please explain
In: Electrical Engineering
What does the following statement tell a C compiler to do, and
when does it do it?
#define UCHAR unsigned char
In: Electrical Engineering
list the losses in the series and parallel DC motors, and to which they are attributed.
In: Electrical Engineering
What is the difference between a capacitor- start split-phase motor and a permanent-split capacitor motor? Briefly explain some of the differences between them including advantage and disadvantages of each.
In: Electrical Engineering
A variable attenuator that provides 0-15 dB attenuator 0.5 dB steps.
Analyze and describe an appropriate attenuator architecture
and specify the number of control bits required to control this device
In: Electrical Engineering
A constant pitch helical coil is made from a length L=7m of round conductor having a copper core with diameter d=0.1mm and covered with an insulation of thickness t=0.02m, by winding the conductor on a mandrel having a length Lm=120mm and a diameter dm=3mm and allowing equal leads for connection at the two ends, each with a length l=10mm
Calculate the coil DC resistance if the electrical resistivity of copper is 1.72 µΩcm [marks 2]
Calculate the coil inductance [marks 4]
Calculate the equivalent capacitance of the coil. The relative permittivity of the conductor insulation is εr = 2.3mm [marks 2]
If the coil is attached to a circuit using its leads estimate the supplementary inductance and capacitance introduced by this set-up. [marks 3]
Calculate the resonance frequency for the arrangement considered in d) [marks 1]
In: Electrical Engineering
9. The purpose of this problem is to use MATLAB to
compute the magnitude, phase, and total
energy of a Fourier transform.
a) Develop a MATLAB routine to plot the magnitude and phase of a
given Fourier
transform H(jω). The input part of your program will, of course,
require that you
specify the particular H(jω) of interest, but, once this is done,
your program should not
depend on the Fourier transform specified. You will need to select
an appropriate
range of frequencies for these plots. Test your program using the
following three
signals for a = 4 (plot all three using the same range of
frequencies):
i) h(t) = e-at u(t)
ii) h(t) = e-a|t|
iii) h(t) = te-at u(t)
b) Extend the MATLAB routine that you developed in part a) to find
the approximate
total energy in each of the signals, as well as to find the
approximate frequency ω in
rad/sec below which 90% of the total signal energy is
contained.
c) Suppose you wanted to design a simple low-pass filter with a
specified cutoff
frequency. Assuming that you could choose the desired value of a
and based on the
total energy criterion alone, which impulse response would you
choose? Why?
In: Electrical Engineering
What is the fastest way to draw a timing diagram, given a synchronous Flip Flip and multiple inputs, along with things like ClrN and PreN.
In: Electrical Engineering
Submit your calculation/answer for Part 1 and MATLAB code/result/answer for Part 2 below:
Servicing Customers A supermarket you work part-time at has one express lane open from 5 to 6 PM on weekdays (Monday through Friday). This time of the day is usually the busiest since people tend to stop on their way home from work to buy groceries. The number of items allowed in the express lane is limited to 10 so that the average time to process an order is fairly constant at about 1 minute. The manager of the supermarket notices that there is frequently a long line of people waiting and hears customers grumbling about the wait. To improve the situation he decides to open additional express lanes during this time period. If he does, however, he will have to "pull" workers from other jobs around the store to serve as cashiers. Hence, he is reluctant to open more lanes than necessary. Knowing that you are a college student studying probability, your manager asks you to help him decide how many express lanes to open. His requirement is that there should be no more than one person waiting in line 95% of the time. With the task at hand, you set out to study the problem first. You start by counting the number of customer arrival in the express lane on a Monday from 5 to 6pm. There are a total of 81 arrivals. You repeat the experiment on the following four days (Tuesday through Friday) and note the total arrivals of 68, 72, 61 and 66 customers, respectively.
Part 1: Analysis (2% of final grade) In order to solve the problem, you decide to answer the following set of questions:
1)
2)Ans= 1.16
3) Ans = 67.71%
4) Ans= 96.53%
Part 2: Simulation (2% of final grade)
Before telling your manager your recommendation, you decide to simulate the problem first to verify your solution:
1) You decide to approximate the customer arrival process as follows. You treat each one-second interval as a Bernoulli trial. Assign it to be a one, if there is a customer arrives during that interval, zero if no customer arrives.
2) You count the number of customers arrives during a one-minute interval.
3) You count the total number of minutes out of a one-hour period that have two or fewer customers arrive. Does this number give your probability close to your calculation in Part 1 Prob 3?
4) Now based on your answer to Part 1 Prob 4, assign the arrivals in Part 2 Prob 1 with equal probabilities to the number of express lanes you recommend.
5) You count the number of customers arrives at each lane during a one-minute interval.
6) You count the total number of minutes out of a one-hour period that all lanes have two or fewer customers arrive. Does this number give you probability close to your calculation in Part 1 Prob 4?
Done in MatLab please.
In: Electrical Engineering
Q4- A 480V, 50Hz, 20KVA Y-connected eight-pole synchronous
generator has a per-phase synchronous impedance of 0.15+??1.1 ?.
The total mechanical and stray losses are 1.5kW. The core losses
are neglected. Assume that the magnetization curve of the generator
is linear. If the generator operates at full load at a unity power
factor, calculate the following:
a.The speed of rotation of the generator at full load.
b.The voltage regulation of the generator.
c.The developed torque on the shaft of the generator.
d.The efficiency of the generator at full load.
In: Electrical Engineering
What are the differences between the single and cascaded bi-quad filters?
In: Electrical Engineering
A 450-V-rms, 50-Hz eight-pole delta-connected synchronous motor
operates with a developed power (including losses) of 150 kW and a
power factor of 0.9 lagging. The synchronous
reactance is Xs = 1.6 ?. How much must the field current be
increased to produce 100 percent power
factor? Assume that Br is proportional to If with no magnetic
saturation.
(I would be very grateful if you could write neatly :) )
In: Electrical Engineering
why is it hard to a achieve fusion of earth?
In: Electrical Engineering
what is fusion and why is it considered the future energy?
In: Electrical Engineering
Convert the following pieces of code in just a single line of code. In all cases, A and B are arrays of size 5 x 5. Important: The expression "single line of code" implies a single command or equality. In other words, the code: X=A+1; X=X+B; is considered to be TWO lines.
(a) (4%) for i=1:5,
for j=1:5
A(i,j)=B(i,j)+1;
end
end
_________________________________
(b) (4%) for i=1:3
for j=2:4
A(i,j)=B(i,j);
end
end
_________________________
(c) (5%) for i=1:3
for j=2:4
A(i,j)=B(i+2,j+1);
end
end
_________________________________
(d) (4%) for i=1:5
for j=1:5
A(i,j)=1/(B(i,j))^2;
end
end
_________________________________
(e) (5%) for i=1:5
for j=1:5
A(i,j)=B(6-i,j);
end
end
_________________________________
In: Electrical Engineering