answersLogoWhite

0

LIBRARY ieee;

USE ieee.std_logic_1164.all;

USE ieee.std_logic_arith.all;

ENTITY pri_enc IS

port(a,b,c,d:in std_logic;m:out std_logic_vector(1 downto 0));

END ENTITY pri_enc;

architecture pr_en of pri_enc is

begin

process(a,b,c)

begin

if a='1' then

s<="00";

elsif b='1' then

s<="01";

elsif c='1' then

s<="10";

else s<="11";

end if;

end process;

end pr_en;

User Avatar

Wiki User

13y ago

What else can I help you with?

Continue Learning about Electrical Engineering

Why 1164 used in encoder vhdl programming?

VHDL program follows IEEE library. This means that all the data types, commands, keywords etc. used in a VHDL program are stored in a library called IEEE library. This library will be available in the EDA tool which is executing the VHDL program. 1164 is a package where all the logic gates are defined. This is a sub part of IEEE library. As encoder program requires logic gates, we need to use 1164 package in the code.


What are disadvantages of VHDL?

VHDL is basically a hardware description language. To describe hardware as a program that can be dumped into a PLD, we use VHDL. It is essential to represent hardware as program so that it can be tested before realizing it physically. If there are any errors, they can be corrected here itself.


What is Binary Encoder?

A binary encoder is a person who creates a code used to program computers at the most basic level. Claude Shanna developed binary encoding in the 1930s.


How to do a password using vhdl?

A VHDL program can be written to provide a password in the following ways.Using FPGA:Your program can be dumped into a FPGA. This works as per the program written. As the code is burned into it, the user can not see the code. Now, within your program you can have a conditional statement which serves as your password. For example,if (c=ramarav) then...................................................................Using CPLD:It also works in the similar manner.Using a GUI:We can implement a graphical user interface, but the easier way is to take the help of MATLAB tool. We can implement our VHDL code in MATLAB tool and it serves the purpose.


What is the latest VHDL version?

In 2008, Accellera released VHDL 4.0 to the IEEE for balloting for inclusion in IEEE 1076-2008. The VHDL standard IEEE 1076-2008 was published in January 2009. Currently, IEEE 1076-2008 is the latest version of VHDL.

Related Questions

Why 1164 used in encoder vhdl programming?

VHDL program follows IEEE library. This means that all the data types, commands, keywords etc. used in a VHDL program are stored in a library called IEEE library. This library will be available in the EDA tool which is executing the VHDL program. 1164 is a package where all the logic gates are defined. This is a sub part of IEEE library. As encoder program requires logic gates, we need to use 1164 package in the code.


Vhdl code for 8 to 3 priority encoder?

karthika only know answer to this question


Why function in VHDL?

A function is a subprogram written in VHDL. This program can be called and used in other programs.


What is meaning of Test Benches in VHDL?

After compiling a hardware description language like VHDL, it is required to apply inputs to the program in order to obtain out puts. Applying the inputs involves initial conditions. As the systems designed using VHDL are electronic, the initial conditions plays a vital role. Hence, all these conditions along with the information as to where the input is expected to change from 1 to 0 or 0 to 1 is provided to the VHDL program. This is done in the form of a wave or another VHDL program. These are called VHDL test benches. In other words, test benches are the means of applying inputs to VHDL program.


How do you build 8085 using vhdl?

VHDL is a hardware description language. It describes the functionality of a hardware as a program. If we know the architecture of 8085, the same can be implemented or coded using VHDL.


How vhdl is used?

VHDL is a hardware description language. The purpose of any HDL is to represent hardware as a program. We can write a program (code) for any digital circuit using VHDL. With the help of this code, the output of the circuit can be observed before actually designing it physically.


4 Difference between c program and vhdl program?

There are 4 main differences between C programming and VHDL programming. C is a mid-level language, while VHDL is a hardware description language. C can handle one type of instruction, while VHDL can handle two. C does not require as much resource usage as VHDL. C can be written only with logical thinking, but a VHDL programmer must understand hardware circuits.


Why should you use vhdl?

VHDL is a hardware description language. Its very purpose is to describe hardware in the form of a program. This program can be understood by the user and the system as well. By implementing the hardware as a code, it is easier to verify its functionality. Hence, to test hardware before it could actually be designed, we should use VHDL.


What are disadvantages of VHDL?

VHDL is basically a hardware description language. To describe hardware as a program that can be dumped into a PLD, we use VHDL. It is essential to represent hardware as program so that it can be tested before realizing it physically. If there are any errors, they can be corrected here itself.


What is the vhdl code for 8253 microprocessor?

VHDL code for 8253 need to be written in structural modeling of VHDL. It will be a bunch of programs related to each and every component or functionality we use in 8253 and need to be combined. It is not a single program. It is a combination of several programs.


VHDL code of home security?

VHDL code for home security need to be written in structural modeling of VHDL. It will be a bunch of programs related to each and every home appliance we use and need to be combined. It is not a single program. It is a combination of several programs.


How do you get Vhdl for free?

VHDL is not any software. It is a programming language. One should learn how to program using VHDL. The supporting software tools may be downloaded from some of the EDA Tools providers on trial basis. Aldec is providing the student version for free.