Question

In: Computer Science

verilog question Please answer true or false: The expression(A==B)is evaluated as true if A is equal...

verilog question

Please answer true or false:

The expression(A==B)is evaluated as true if A is equal to B and false other wise .The !=operator has the opposite effect.

true or false?

For background reference only:

Write a verilog code for 16:1 multiplexer and create a test bench for the 15th input to be selected by control input to be on output line.

Solutions

Expert Solution

DESIGN MODULE FOR 16:1 MUX

module multix16( sel, i, q );

input[3:0] sel;// 4 select lines
input[15:0] i; //INPUTS
output q;

wire q;
wire[3:0] sel;
wire[15:0] i;

assign q = i[sel];

endmodule

TESTBENCH MODULE FOR 16:1 MUX
module multix16_tb;

reg[15:0] i;
reg[3:0] sel;
wire q;

integer x;

multix16 my_mux( sel, i, q );

initial
begin
i[14]=1;#1 //15th input is being set 1 here


sel = 14; #1; //Sel line set to 14 for selecting 15th input set above
#1 $monitor("i = %b", i, " | sel = ", sel, " | q = ", q );
$display("-----------------------------------------");

end
endmodule

OUTPUT SCREENSHOT


Related Solutions

True/False Questions. For each question below, please answer “true” or “false” and explain why. 6. A...
True/False Questions. For each question below, please answer “true” or “false” and explain why. 6. A consumer with convex preferences who is indifferent between the bundles (5,2) and (11,6) will like the bundle (8,4) at least as well as either of the first two bundles. Assume these two goods are imperfect substitutes. 7. The marginal rate of substitution is always the same constant number when the goods are imperfect substitutes and no matter how many of each good is being...
Answer each question by True or False. Justify your answer. (1) True or False? The set...
Answer each question by True or False. Justify your answer. (1) True or False? The set V = {p ∈ P2: p (7) = 0, p’ (7) = 0} is a subspace of P2. (2) True or False? The set of 2 by 2 matrices whose entries are either all 0 or all nonzero is a subspace of the set of all 2 by 2 matrices M2×2(R). (3) True or False? The set of all functions in C([0, 1]) such...
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if...
Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false. (3 * 5 > 10) || (20 < 15) True False Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false. "Medium" < "High" True False Evaluate the following logical expression. Choose True if the expression evaluates to true; choose False if the expression evaluates to false. (4...
True or False Questions: Please answer true or false. 1. Even when care is free at...
True or False Questions: Please answer true or false. 1. Even when care is free at the point of service, we would expect low and high-income individuals with the same level of need to demand different quantities of health care. 2. We would expect the demand curve for physician visits to be more price elastic than the demand curve for inpatient hospital care. 3. A decision by the provincial governments to include counseling by psychologists within the public insurance plan...
Please answer these TRUE or FALSE questions. 1. True or False. The Born-Oppenheimer approximation accounts for...
Please answer these TRUE or FALSE questions. 1. True or False. The Born-Oppenheimer approximation accounts for scattering. 2. True or False. Tunneling is one way to approximate the solution to the Free Particle. 3. True or False. The coordinate version (x,y,z) of the Free Particle wavefunction can be normalized by including time. 4. The spin quantum number is used when combining the Hydrogen Atom and Free Particle models together.
Please try to solve all of them True/false questions T   F         A blocking assignment in Verilog...
Please try to solve all of them True/false questions T   F         A blocking assignment in Verilog is used to synchronize assignment statements so that they appear to execute at the same time. T          F           A blocking assignment in Verilog completes execution before next statement executes. T          F           Verilog Hardware description language is case sensitive. T          F           An “if” statement must always be inside of an “always” block. T          F           Verilog may be written at the Behavioral, Structural, Gate, Switch and...
True/False Question: If sppan{u,v}=W where u not equal to v. Then dim(W)=2. Answer: False Reasoning let...
True/False Question: If sppan{u,v}=W where u not equal to v. Then dim(W)=2. Answer: False Reasoning let u=1, v=2 then span(1,2}=R but dim(R)=1 not 2. I know the answer is false. please tell me whether my reasoning is correct.
QUESTION 1: The Equal Pay Act guarantees that all employees will receive equal compensation. True False...
QUESTION 1: The Equal Pay Act guarantees that all employees will receive equal compensation. True False QUESTION 2: Title VII of the Civil Rights Act only applies to race or color. True False QUESTION 3: A prospective employer is restricted in the type of questions that can and cannot be asked during an interview. True False QUESTION 4: The Age Discrimination in Employment Act prohibits employment discrimination against individuals 50 years of age and older . True False QUESTION 5:...
TRUE/FALSE Please indicate whether each question is true or false and provide a 1 sentence explanation...
TRUE/FALSE Please indicate whether each question is true or false and provide a 1 sentence explanation 5. Temperature is associated with terrestrial productivity. If the global temperature increased by 10C we would expect that grasslands would have an increase in both GPP and NPP. 6. In most ecosystems, the rate of phosphorous recycling through fixation exceeds the rate added through weathering. 7. An invasive insect called the Emerald Ash Borer has been killing off ash trees across eastern North America...
Answer true or false to the following questions please explain your answers and answer all please  ...
Answer true or false to the following questions please explain your answers and answer all please   1.The cytoplasmatic side of the integral membrane proteins is often glycosylated. 2. Cholesterol is more enriched at the outer leaflet of the plasma membrana 3.Inner leaflet of the plasma membrane is enriched with glycolipids. 4.Membrane proteins that pomp ions in and out of the cell have specific Km values. 5. A symport would function as an antiport if its orientation in the membrane were...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT