draw state machine and write verilog code of an ALU unit that shifts left when the control signal 'OP' is 00, shifts right when control is ''01'' and increments when control is ''10''. Fpr control ''11'' , it does nothing. inputs are Date [3:0] and clk, and the output is Out [3:0]
In: Electrical Engineering
A four-bit binary number is represented as A3A2A1A0, where A3, A2, A1, and A0 represent the individual bits and A0 is equal to the LSB. Design a logic circuit that will produce a HIGH output whenever the binary number is greater than 0010 and less than 1000.
how can I do this by using sum of product, not K map
In: Electrical Engineering
In: Electrical Engineering
Use MATLAB to find the 8 point DFT of x(n) = cos(2πmn/8) (m=3) for 0 ≤ n ≤ 7.
Plot both x(n) and its DFT and explain your results. The "dct" and "fft" functions in MATLAB may be useful. Please post MATLAB code.
In: Electrical Engineering
Suppose we have a network in which 3 nodes share a common transmission media. The length of the frame sent by every node is fixed to 1. We also suppose that every node has the probability of 0.6 to generate a frame to be sent in any time period of length 1. Please answer the following questions.
a) When pure ALOHA is adopted, what is the probability that a
node successfully transmits a frame?
b) When slotted ALOHA is adopted, what is the probability that a
node successfully transmits a frame?
In: Electrical Engineering
I want to build a thin flexible rubber sheet, embedded with piezoelectric materials to convert mechanical energy into electrical energy.
Can anyone please tell me how i can proceed with this experiment?
or if there is any online supplier where i can buy from?
In: Electrical Engineering
Implement a 2 by 2 multiplier using structure VHDL. The circuit will have two 2-bit unsigned inputs (A and B), a 4-bit unsigned product outputs (P). Please use some full adders and gates (AND, OR, NOT, XOR).
In: Electrical Engineering
Generate a noisy image by adding salt and pepper noise to a clean image (try to add moderate to low level of noise).
Now, investigate the effects of the following on the noisy image:
The filter size (e.g. 3´3 and 7´7) for the median filter.
Repeated application of a 3´3 median filter for several times
%matlab code is needed
In: Electrical Engineering
in power system operation and control
there are three major subsystems are
1/Data acquisition
2/security monitoring
3/energy economy
explain in short answer these three
In: Electrical Engineering
Write a for loop from 1 to 3 using i as the variable. For each value of i:
Create a vector x of 10 random numbers between 0 and 1. Create a second vector t which is equal to ten integers from 1 to 10. Plot x versus t in figure 1. Use hold on to keep each plot. Use a different color for the line for each value of i.
At the very end, add the text 'time' using xlabel to the horizontal axis, and the text 'f(t)' using ylabel to the vertical axis.
This is what I have so far:
% Creating a 'for' loop from 1 to 3 using 'i' as the
variable
for i=1:3
% For each value of 'i', creating a vector 'x' of 10 random numbers
between 0 and 1
x=rand(1,10);
% For each value of 'i', creating a second vector 't' which is
equal to 10 integers from 1 to 10
t=randi([1,10],10);
end
% Plotting 'x' versus 't' in figure 1
figure(1),plot(x,t)
% Using 'hold on' to keep each plot
hold on
% Using a different color for the line for each value of
'i'
%add code
% Adding the text 'time' using 'xlabel' to the horizontal
axis
xlabel('time')
% Adding the text 'f(t)' using 'ylabel' to the vertical
axis
ylabel('f(t)')
In: Electrical Engineering
In: Electrical Engineering
What are the advantages of Wheatstone bridge measurement over a direct resistance measurement if for a temperature sensor?
In: Electrical Engineering
Exercise 2.1: Basic digital signals (a) Write a MATLAB program to generate and display (using the stem function) the signals defined in Table 1. The MATLAB code of the first signal (dirac) is given in the report template as an example. (b) Write a MATLAB function [x, t] = sin_NU(f0, fs, T) to generate a sine signal. The output parameters x and t are the signal and time vectors, respectively. The input parameters are f0 (signal frequency in Hz), fs (sampling frequency in Hz), T (signal duration in sec.). (c) Test your sin_NU function with the input parameter values .... and display the result using the plot function. List of basic digital signals to generate: - Dirac (Unit Response) - Unit step (Heaviside step) - Sign - Rectangle - Sine - Sine cardinal Exercise 2.2: Audio aliasing To illustrate the aliasing phenomenon, let’s perform two simple experiments allowing us to “hear” it. Using the sin_NU function of Exercise 1: (a) Generate two 1 kHz sine signals (2 seconds duration), first signal at 20 kHz sample frequency and second signal at 1.5 kHz sample frequency; (b) On the same graph, use the plot function to display the two signals versus t in the range 0 < t < 5 msec.; (c) Listen to the two signals one after another using the function soundsc(x, fs); and (d) Give your interpretation of this listening. Exercise 2.3: Quantization Quantization is done by replacing each value of an analog signal x(t) by the value of the nearest quantization level. To exemplify this operation, let’s simulate an unipolar ADC (Analog to Digital Converter) having the technical specifications: R = 10 Volts (full-scale range) and B = 3 (number of bits). (a) Write a MATLAB function y = adc_NU(x, R, B) where x and y are vectors containing the input signal and the quantized signal, respectively; (b) Test your function with an input ramp signal ranging from -5 to 15 Volts (1 volt per step); and (c) On the same graph, use the plot and stem functions to display the input signal and quantized signal, respectively.
In: Electrical Engineering
In: Electrical Engineering
What is the most effective way to reach both the users and IT department staff about how important security policies are?
In: Electrical Engineering