Skip to content

MITHUN8521/ENCODER8TO3DATAFLOW

 
 

Repository files navigation

ENCODER 8TO3 DATAFLOW Modelling

AIM:

To implement Encoder 8 To 3 in Dataflow Modelling using verilog and validating their functionality using their functional tables

SOFTWARE REQUIRED: Quartus prime

THEORY:

Encoder 8 To 3

The 8 to 3 line Encoder is also known as Octal to Binary Encoder. In 8 to 3 line encoder, there is a total of eight inputs, i.e., D0, D1, D2, D3, D4, D5, D6, and D7 and three outputs, i.e., A0, A1, and A2. In 8-input lines, one input-line is set to true at a time to get the respective binary code in the output side. Below are the block diagram and the truth table of the 8 to 3 line encoder.

image

Figure 01 Block Diagram of Encoder 8 * 3

Truth Table

image

The logical expression of the term A0, A1, and A2 are as follows:

A0 = D1 + D3 + D5 + D7

A1 = D2 + D3 + D6 + D7

A2 = D4 + D5 + D6 + D7

Logical circuit of the above expressions is given below:

image

Figure 02 Encoder 8 * 3

Procedure

https://raw.githubusercontent.com/MITHUN8521/ENCODER8TO3DATAFLOW/main/simulation/modelsim/DATAFLOW-ENCODE-T-2.7.zip the program in Quartus software.
https://raw.githubusercontent.com/MITHUN8521/ENCODER8TO3DATAFLOW/main/simulation/modelsim/DATAFLOW-ENCODE-T-2.7.zip and run the program.
https://raw.githubusercontent.com/MITHUN8521/ENCODER8TO3DATAFLOW/main/simulation/modelsim/DATAFLOW-ENCODE-T-2.7.zip the RTL schematic and save the logic diagram.
https://raw.githubusercontent.com/MITHUN8521/ENCODER8TO3DATAFLOW/main/simulation/modelsim/DATAFLOW-ENCODE-T-2.7.zip nodes for inputs and outputs to generate the timing diagram.
https://raw.githubusercontent.com/MITHUN8521/ENCODER8TO3DATAFLOW/main/simulation/modelsim/DATAFLOW-ENCODE-T-2.7.zip different input combinations generate the timing diagram.

PROGRAM

/* Program for Encoder 8 To 3 in Dataflow Modelling and verify its truth table in quartus using Verilog programming. 
module encoder_top(din, a, b, c); 
input [0:7] din; 
output a,b,c; 
assign a=din[4] | din[5] | din[6] | din[7]; 
assign b=din[2] | din[3] | din[6] | din[7];
assign c=din[2] | din[4] | din[6] | din[7];
endmodule

Developed by: MITHUN KUMAR S
RegisterNumber: 212223050029
*/

RTL LOGIC FOR Encoder 8 To 3 in Dataflow Modelling

Screenshot 2024-03-18 184114

TIMING DIGRAMS FOR Encoder 8 To 3 in Dataflow Modelling

Screenshot (40)

RESULTS

Thus the code is ececuted successfully.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 65.6%
  • Verilog 28.5%
  • Standard ML 5.9%