Pages

Recent Post

Flipkart.com

Trending Topik

Sunday, 1 July 2012

VHDL Code Structure( Library, Entity, Architecture)


Library Declaration:
A library is a collection of codes which can be used by several other functions.
Structure of library declaration is given below:

Library ieee;
Use ieee.std_logic_1164.all;
Use ieee.std_logic_arith.all;
Use ieee.std_logic_unsigned.all;

The above code can be used for all VHDL code.
Entity:
Entity defines all the input and output ports of the circuit.
Example:
Suppose a full adder circuit which has three inputs and two outputs. So ENTITY declaration of  fulladder can be written in the following way.

Entity full_adder is                            --full_adder is the name of the entity
Port( Ain: in  std_logic;            --Port Ain to Port Cout declaration
Bin: in std_logic;
Cin: in std_logic;
Sum: out std_logic;
Cout: out std_logic);
End full_adder;

2 comments:

  1. You might make a difference in society or somebody’s life. This will also help you set an example for your siblings, who will then follow your footsteps. To help you think of ways to keep yourself entertained and make the most of your summer break, here are some ideas you can consider. One of the things we tend to neglect is exercise and top thesis writing services UK’. Being a high school student, it is difficult to think about going to the gym and working out. With all the essays and assignments, it’s just not possible to stick to a fitness regime. However, now that you are free as a bird, you can make time to concentrate on top coursework writing services UK planning a fitness program for yourself and sticking to it. Throughout the time when you are busy with schoolwork, you think about the stack of books on your bookshelf that you haven’t had the time to read. Now that you have time, you can curl up and wholeheartedly read your favourite books for hours and hours. Reading also enhances a person’s writing skills.

    ReplyDelete
  2. Thus, before starting your day, you should invest time to think and write all the tasks required to be done. This will allow you to initiate your day on a good note which will help you garner immaculate outcomes in every walk of life. You may have top thesis writing services UK multiple times that you do not have extra time to spare. However, did you ever question yourself when you went out of your way to execute something you like? In fact, you only make time for things which are deemed necessary by you. Thus, in order to excel in every sphere of your life, you should set your priorities straight. If you want yourself to work efficiently in constraint timespans, challenge yourself first. Set time limits for everything you do. For instance, you may promise yourself that you will watch your favourite season episodes for an hour. After the completion of one hour, you should terminate this activity at once. Remember, top dissertation writing services UK may take a while to become accustomed to these limits but it will eventually help you attain self-control.

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...

Receive all updates via Facebook. Just Click the Like Button Below...

Powered By AFS