Describe digital logic circuit on behavioral and gate level

Assignment Help Electrical Engineering
Reference no: EM13897033

1. Functional Specifications

Design a Verilog program that performs the basic arithmetic and logic operations (ALU) on two

3-bit binary inputs, and displays the outcome on 7-segments.

• Arithmetic operations: addition and subtraction

• Logic operations: AND and OR

• Displaying results:

- For addition and subtraction: display the result using decimal digits

- For logic AND and OR: display the result using binary digits

2 Objectives

Demonstrate the ability to

1. program in Verilog to describe digital logic circuit on behavioral and gate level;

2. use Xilinx ISE for coding and synthesizing the logic design;

3. use Spartan 3 development board to implement and verify the design.

i want like this cods to use in the Xilinx program
this is Example

module seg7(bcd, leds, control, enable);

input [3:0] bcd;

input [1:0] control;

output reg [1:7] leds;

output reg [3:0] enable;

always @ (control)

case (control)

2'b00: enable = 4'b1110;

2'b01: enable = 4'b1101;

2'b10: enable = 4'b1011;

2'b11: enable = 4'b0111;

endcase

always @ (bcd)

case (bcd)

4'b0000: leds = 7'b0000001;

4'b0001: leds = 7'b1001111;

4'b0010: leds = 7'b0010010;

4'b0011: leds = 7'b0000110;

4'b0100: leds = 7'b1001100;

4'b0101: leds = 7'b0100100;

4'b0110: leds = 7'b0100000;

4'b0111: leds = 7'b0001111;

4'b1000: leds = 7'b0000000;

4'b1001: leds = 7'b0000100;

4'b1010: leds = 7'b0001000;

4'b1011: leds = 7'b1100000;

4'b1100: leds = 7'b0110001;

4'b1101: leds = 7'b1000010;

4'b1110: leds = 7'b0010000;

4'b1111: leds = 7'b0111000;

default: leds = 7'bx;

endcase

endmodule

Reference no: EM13897033

Questions Cloud

Koto corporation began the month of june : Koto Corporation began the month of June with $ 300,000 of current assets, a current ratio of 2.5:1, and an acid test ratio of 1.4:1.
General equilibrium-contract curve for initial allocation : Bert has an initial endowment of 10 units of food and 10 units of clothing. Ernie’s initial endowment consists of 10 units of food and 20 units of clothing. Represent these initial endowments in an Edge worth Box. Describe the set of allocations that..
Write an essay on judicial activism : Write an essay on (or discuss) judicial activism. Present the arguments on both sides of the question as to whether judges should interpret or simply apply the Constitution. Provide more current examples (the current Supreme Court docket) and predict..
Calculate the monthly usage index for each month : Calculate the monthly usage index for each month. Use simple linear regression to forecast total usage of pallets for year 5. Forecast the seasonally adjusted usage for pallets for each month in year 5.
Describe digital logic circuit on behavioral and gate level : describe digital logic circuit on behavioral and gate level;
What is the nash equilibrium-equilibria of game : Consider Bertrand competition with homogeneous products. Two firms, 1 and 2, produce an identical product and compete by choosing price. Consumers buy from the firm with the lower price. Write out the best response function of firm 1 for any price th..
Does negotiated rulemaking result in better regulations : Does negotiated rulemaking result in better regulations and is it perceived as more valid by the interested parties? Why is it a better process than regulations generated through traditional notices and comment rulemaking?
Substantial budget deficit : The United States Federal Government has been running a substantial budget deficit since the 1970s and national savings levels have been steadily falling. Given this, can you explain why investment has remained positive and has been growing steadily ..
Discuss concepts of productive employee behavior : Evaluate the different employee motivation theories and discuss some applications to organizational settings. Examine the concepts of job satisfaction and how it applies to a success or failure. Discuss concepts of productive employee behavior

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Write a brief explanation of what the program did wrong

Document your test plan in a table. For each test case, document the expected program behavior and the actual program behavior. If the program does not behave according to your prediction, write a brief explanation of what the program did wrong.

  What is temporal frequency of object surface at any point

Consider an object that has homogeneously textured surface with maximum spatial frequency of (fx,fy)=(3,4) cycle/ meter and that is moving at a constant speed of (Vx,Vy)=(1,1) meter/second.

  What is the purpose of these dc current sources

When using current mirrors as current amplifiers, a dc current source is often included on both the input side and the output side of the current mirror. What is the purpose of these dc current sources

  Derive a static nmos pass-transistor implementation of the

derive a static nmos pass-transistor implementation of the following logic function f ab.c so that the number of

  Find the quantized output for each of the sample values

Two bit Analog -to -digital converter-MatLab (711) Let X(t)= 0.8 cos(2*pi*t)+ 0.15, 0

  Calculate pmos device to acheive symmetric propagation delay

Calculate the PMOS device with to acheive symmetric propagation delays in an inverter (tPLH = tPHL). Use Wn=450nm Ln =300nm and Lp=300nm and solve for Wp. So I think by some ratio I can find what Wp should be, maybe something like Wn/Ln=Wn/Lp

  Determine the value of the capacitor in uf

determine the following. (a) The line current (b) The value of the capacitor in uf per phase, is a wye-connected capacitor bank is used to correct the power factor to a 0.95 lagging power factor.

  Combinational and sequential logic design using cplds

Combinational and sequential Logic Design using CPLDs - Number systems and codes, Boolean Algebra, Logic gates and flip-flops

  How many atoms are there in the unit cell of si lattice

(b) Verify that there are 4.994×(10 to the power 22) atoms per cubic centimeter in the Si lattice at room temperature. (c) Determine the center to center distance between nearest neighbours in the Si lattice.

  Explain hspice netlist example

Hspice Netlist example, Often Netlist is generated by programs such as Cadence. However, on the rare occasions when one has to look at Hspice netlist

  Determine the power to which the motor can be loaded slowly

A 3-phase, 2300 V, 60 Hz, 12-pole, Y-connected synchronous motor has 4.5 ? per phase synchronous reactance and negligible stator winding resistance. The motor is connected to an infinite bus and draws 250 A at 0.8 power factor lagging.

  What is the requirement for the phase response transfer

What is the requirement for the phase response (transfer function) of each of these links to avoid distortion of the transmitted waveform?

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