Wednesday, July 22, 2015

VHDL Data Objects

DATA OBJECTS

A data object holds a value of a specified type, created by using object declaration.

Every data object belongs to one of the following three classes:

An object declaration is used to declare an object, its type, and its class, and optionally assign it a value.

1.   Constant

An object of constant class can hold a single value of a given type. This value is assigned to the object before simulation starts and the value cannot be changed during the course of the simulation.

         Eg.,  constant RISE_TIME: TIME := 10ns;
constant BUS_WIDTH: INTEGER := 8:

The first declaration declares the object RISE_TIME that can hold a value of type TIME, with the value assigned at the start of simulation is 10 ns.

The second constant declaration declares a constant BUS_WIDTH of type INTEGER with a value of 8.

The value of the constant has not been specified, called as a deferred constant and it can appear only inside a package declaration. The complete constant declaration with the associated value must appear in the corresponding package body.

constant NO_OF_INPUTS: INTEGER;

2.   Variable

An object of variable class can also hold a single value of a given type. However in this case, different values can be assigned to the object at different times using a variable assignment statement.

Eg.,
variable COUNT: INTEGER;

This results in the creation of a data object called COUNT which can hold integer values and the object COUNT is also declared to be of variable class.

variable CTRL_STATUS: BIT_VECTOR(10 downto 0);
variable SUM: INTEGER range 0 to 100 := 10;
variable FOUND, DONE: BOOLEAN;

The first declaration specifies a variable object CTRL_STATUS as an array of 11 elements, with each array element of type BIT.

In the second declaration, an explicit initial value has been assigned to the variable SUM, with a an initial value of 10 at the start of simulation.

If no initial value is specified for a variable object, a default value is used as an initial value. This default value is T'LEFT, where T is the object type and LEFT is a predefined attribute of a type that gives the leftmost value in the set of values belonging to type T.

In the third declaration, the initial values assigned to FOUND and DONE at start of simulation is FALSE. The initial value for all the array elements of CTRL_STATUS is '0'.

3.   Signal

An object belonging to the signal class has a past history of values, a current value, and a set of future values. Future values can be assigned to a signal object using a signal assignment statement.

The Signal objects can be regarded as wires in a circuit while variable and constant objects are analogous to their counterparts in a high-level programming language like C or Pascal.

Signal objects are typically used to model wires and flip-flops while variable and constant objects are typically used to model the behavior of the circuit.

signal CLOCK: BIT;
signal DATA_BUS: BIT_VECTOR(0 to 7);
signal GATE_DELAY: TIME := 10 ns;

The first signal declaration declares the signal object CLOCK of type BIT and gives it an initial value of '0'.

The Second Signal Declaration declares the signal object DATA_BUS of type BIT_VECTOR with 1-dimensional array of 8 bits with an intial value of “00000000”.

The third signal declaration declares a signal object GATE_DELAY of type TIME that has an initial value of 10 ns.
Other Ways to Declare Objects

The object declarations that are not created using object declarations are declared as

1.   ports of an entity. All ports are signal objects.

2.   generics of an entity which are constant objects.

3.   formal parameters of functions and procedures. Function parameters are constant objects or signal objects while procedure parameters can belong to any object class.

4.   a file declared by a file declaration.

There are two other types of objects that are implicitly declared, these are the indices of a for. . . loop statement and the generate statement

Eg., an implicit declaration for the loop index in a for. . . loop statement

for COUNT in 1 to 10 loop
SUM := SUM + COUNT;
end loop;

In this for . . . loop statement, object COUNT has an implicit declaration of type INTEGER with range I to 10. The object COUNT is created when the loop is first entered and ceases to exist after the loop is exited. 

79 comments:

  1. Very nice blog...
    Great information provided. We also provide VHDL Training in Noida. I appreciate your work.

    ReplyDelete
  2. Nice post. very useful and informative one. keep sharing
    VHDL summer training in Noida

    ReplyDelete
  3. Thank you for the valuable informations. Please keep sharing.
    Find updates on Summer Training in Delhi

    ReplyDelete
  4. 6 Weeks Summer Internship in Delhi
    Avail 100% Scholarship for Summer Internship 2018. Req. 150+ Resources on Live Projects. Seats Filling Fast !!
    Registration is going on for Summer Internship in Delhi. 6 weeks summer course is delivered by KVCH Delhi. Aspirants from CS / IT / Civil / Mechanical / ECE / EEE / CE / MCA / BCA and other engineer branches can join the project based summer course with 100% placement assistance in top MNCs.

    https://kvch.in/delhi/summer-training-delhi.html

    G-18, 2nd Floor, Preet Vihar, Delhi-110092
    Email: delhi.trg1@kvch.in
    Contact: +91-951-086-0860

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Good Information...really you have put good efforts..thanks for sharing. Best software Training institute in Bangalore

    ReplyDelete
  7. Nice Blog.Thanks For Sharing This Information Very Useful And More Informative.

    Tibco BW Training

    ReplyDelete
  8. Thanks for sharing. I really liked your post, keep sharing!!

    CEH Training In Hyderbad

    ReplyDelete
  9. Please continue this great work and I look forward to more of your awesome posts.

    Data Science in-house Corporate training in Nigeria

    ReplyDelete
  10. Thanks for sharing this valuable information and we collected some information from this blog.

    In house Management training

    ReplyDelete
  11. This is a wonderful article, Given so much info in it, Thanks for sharing. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.
    Salesforce Training in Chennai

    Salesforce Online Training in Chennai

    Salesforce Training in Bangalore

    Salesforce Training in Hyderabad

    Salesforce training in ameerpet

    Salesforce Training in Pune

    Salesforce Online Training

    Salesforce Training

    ReplyDelete
  12. This is a wonderful article, Given so much info in it, Thanks for sharing. I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well.
    IELTS Coaching in chennai

    German Classes in Chennai

    GRE Coaching Classes in Chennai

    TOEFL Coaching in Chennai

    spoken english classes in chennai | Communication training

    ReplyDelete
  13. Thanks for the Valuable information.Really useful information. Thank you so much for sharing. It will help everyone.

    GRAPHIC DESIGN TRAINING IN DELHI

    FOR MORE INFO:

    ReplyDelete
  14. I always to love read this kinds of blog or article

    thanks for sharing nice content

    digital marketing training

    ReplyDelete
  15. Are you looking for AWS Training in delhi? AP2V Academy is the best option for you! We are one of the best AWS Training provider academies in Delhi, India. We Also conduct DevOps Training, DevOps Training, GCP Course, Linux Courses training, etc. Online live interactive classrooms with lifetime recording videos & 24*7 support. For more information- 92103 33323.

    ReplyDelete
  16. Are you looking for Python Training in delhi? AP2V Academy is the best option for you! We are one of the best Python Training provider academies in Delhi, India. We Also conduct AWS Training DevOps Training, GCP courses, Linux Courses training, etc. Online live interactive classrooms with lifetime recording videos & 24*7 support. For more information- 92103 33323.

    ReplyDelete
  17. Are you looking for AWS Training in Gurgaon? AP2V Academy is the best option for you! We are one of the best AWS Training provider academies in Gurgaon, India. We Also conduct DevOps Training, DevOps Training, GCP courses, Linux Courses training, etc. Online live interactive classrooms with lifetime recording videos & 24*7 support. For more information- 92103 33323.

    ReplyDelete

  18. Are you looking for Python Training in Gurgaon? AP2V Academy is the best option for you! We are one of the best Python Training provider academies in Gurgaon, India. We Also conduct DevOps Training, GCP courses, Linux Courses training, AWS Training etc. Online live interactive classrooms with lifetime recording videos & 24*7 support. For more information- 92103 33323.

    ReplyDelete
  19. Are you looking for Python Training in Noida? AP2V Academy is the best option for you! We are one of the best Python Training provider academies in Noida, India. We Also conduct DevOps Training, GCP courses, Linux Courses training, AWS Training etc. Online live interactive classrooms with lifetime recording videos & 24*7 support. For more information- 92103 33323.

    ReplyDelete
  20. Domminik is the best online cricket shop for cricket equipment in Sydney, and we offer premium quality Batting Leg Guard, "Kookaburra cricket balls" at unbeatable prices.

    ReplyDelete
  21. Are you looking for Diploma in Food Production Jaipur? Each diploma program equips students in the basic areas of specialization and institutes to provide hands-on training to students in the institute kitchens and laboratories. with the student community as it guarantees them jobs in the hospitality industry immediately upon completion.

    ReplyDelete
  22. Are you interested in pursuing a career in DevOps? If yes, then you must enroll yourself at our DevOps Training in Delhi , that is, AP2V institute. We offer the Best DevOps Training in the Delhi region. AP2V's professional and experienced mentors will aid you in gaining real-world and corporate experience after you enroll in the DevOps course

    ReplyDelete
  23. Looking for a family practice doctor in Vienna? Heale Medical has you covered. Our team of family practice doctors in Vienna is committed to providing you with top-notch care. We've got you covered whether you're looking for a general practitioner or pediatrician.

    ReplyDelete
  24. https://www.blogger.com/comment.g?blogID=185873040824080891&postID=3644889227702519427&page=1&token=1660891906638

    ReplyDelete
  25. Best Eye clinic in Gurgaon Barmen Eye Care clinic is a premier, multispeciality eye hospital in Gurgaon where we offer the world-class latest diagnostic and surgical technologies.

    ReplyDelete
  26. Want to know more about the ACCA Subjects and what will be the syllabus like Business and Technology, Management Accounting and Financial Accounting you will gonna learn all about this topics in this blog Click here To learn more

    ReplyDelete
  27. Are you looking for the best astrologer in Gurgaon? Well, Maha Kali Jyotish Kendra is one of the most famous and experienced astrologers in Gurgaon. he solves the love problem solution specialist, For more information contact us:-9818321754.

    ReplyDelete
  28. Book New Projects in Gurgaon, you can buy all pre-launch, under construction, or upcoming projects and property at a relevant price in the second largest city of Haryana.

    ReplyDelete
  29. Appu Ghar provides a low price for oyster water park tickets booking online . Get the best Deals & offer on Online tickets Booking at AppuGhar Gurgaon. Book Now.

    ReplyDelete
  30. Looking for an online astrologer in Gurgaon? Look no further than Mahakali Jyotish Kendra. Our experienced astrologers can answer all of your questions about love, career, and more. Contact us today!

    ReplyDelete


  31. Barmen Eyecare is One of the best Eye Care Clinic in Gurgaon, we have the most experienced eye surgeons Team. We have the Best technology, and painless treatments with hight class equipment

    ReplyDelete
  32. At Agarwal Institute Of Hotel Management, you can choose
    diploma in food production in Jaipur
    to adapt and meet challenges within a range of roles and responsibilities. AIHM is known for its quality education and wide-ranging programs.
    Our motive is to focus on the upskill the aspiring youngsters for serving the global society.

    ReplyDelete
  33. Looking for the latest treatment for dry eye Syndrome in Gurgaon you are facing problems in wearing contact, driving at night, and Reddening of eyes. No worry Barman EyeCare Can solve all your dry eye-related problems

    ReplyDelete
  34. Do you want to know about the IFRS Certification Course and CIMA or you want to know why do we need to get this qualification and how it will help you to grow your future.

    ReplyDelete
  35. If you are looking for best competition coaching in Jaipur? Agrasen civil services Academy (ACSA), is one of the top competition coaching in Jaipur. We have a team of professionals Faculty members in Rajasthan.Our motive is to focus on the upskill the aspiring youngsters of the society.

    ReplyDelete
  36. Agarwal Institute of Hotel Management is the best HM college in Jaipur. If you are interested, Aihm is the best option for you. Placing yourself on a scale of personal growth is especially important for a hotel industry.

    ReplyDelete
  37. This comment has been removed by the author.

    ReplyDelete
  38. If you are looking for a Husband-wife problem solution in Gurgaon? you should contact Mahakali Jyotish Kendra and consult with the best astrologer in Gurgaon.

    ReplyDelete
  39. This comment has been removed by the author.

    ReplyDelete

  40. The COSO Framework stands for the Committee of Sponsoring Organizations of the Treadway Commission. It is a framework that organizations can use to manage enterprise risk. If you want to know more about the History, components, and Principals of the COSO Framework read this blog now.

    ReplyDelete
  41. Do you know which institute is best for civil services preparation? ACSA is the reputed and very famous Institute for Civil Services Coaching in Jaipur.

    ReplyDelete
  42. The Car Ac system is mandatory to have a comfortable ride. You must know the reasons for the failure of your car’s AC system and make sure to keep in mind the best <a href ="https://www.vishwakarmaautomobiles.com/car-ac-repair-in-gurgaon.html”> car service in Gurgaon </a>. Vishwakarmaautomobiles provides 24/7 assistance at a service center in the city

    ReplyDelete
  43. This comment has been removed by the author.

    ReplyDelete
  44. Sswings is one of the Best Daycares in Gurgaon. It provides a nurturing and positive learning environment for your kid. It helps in the development of your child in such a way that they are able to take on challenges in the outside world. The ideal staff-to-child ratio makes it the best childcare center in the city.

    ReplyDelete
  45. Swings is the Best playschool in Gurgaon. Thanks to its focus on the overall development of children. From speaking and writing to creativity and learning, no aspect of a child’s development is neglected here

    ReplyDelete
  46. This comment has been removed by the author.

    ReplyDelete
  47. The 3M 5413 polyimide film tape has exceptional thermal stability and it can retain its original shape and size after being under pressure, twisted, and turned for so long. It is made out of polymer-based imide monomers

    ReplyDelete
  48. The soft construction of 3m double-sided tissue tape 91091 makes this product ideal for many joining, mounting, and sealing applications involving irregular surfaces. Application ideas include attaching trims, labels, lining, fabric, fabric, and web splicing.

    ReplyDelete
  49. This comment has been removed by the author.

    ReplyDelete
  50. This one is the best stylish budget hotel available in Gurgaon with all ultramodern amenities included and stylish value for your plutocrat. For travelers looking for 5-star hotels in Gurgaon Hotel Haut Monde Gurgaon is one of the best business hotels in Gurgaon well known for its homely feel and hospitality hygienic and budget-friendly. it offers 24/7 room service and very good room service along with free parking and AC rooms.

    ReplyDelete
  51. APIR motion sensor is an electronic sensor that measures infrared light emitted by objects. PIR sensor. These are commonly used in PIR-based motion detectors, security alarms, and automatic lighting applications.

    ReplyDelete
  52. This comment has been removed by the author.

    ReplyDelete
  53. Cockroaches are among the most challenging pests to eradicate because they have incredible
    survival skills and have even been known to last one week without a head. One of the greatest
    treatments for cockroach control services
    is offered by Godrej Pest Control in Gurgaon and is based on the gel formulation, which has been tried and tested by professionals.

    ReplyDelete
  54. We take pleasure in our dedication to provide children the best possible care and education, making Sswingspreschool is the most reliable learning partner and daycare in Gurgaon. We encourage kids to explore, create, and dream in order to develop their foundations and get them ready for the future. We do this by putting extensive safety procedures and protocols in place, as well as a carefully prepared curriculum.

    ReplyDelete
  55. You can buy best learning toys for 3 year old kids. JoGenii will be a great place to find different toys and we offers the most affordable prices for educational toys. These types of wonderful toys are available as jigsaw puzzles, wooden puzzles, cubes, and brain teasers. Jigsaw puzzles and wooden puzzles are great to help learn about colours and shapes.

    ReplyDelete
  56. This comment has been removed by the author.

    ReplyDelete
  57. The bestcar ac repair in Gurgaonis
    provided by Vishwakarma Automobiles.We offer high-quality,reasonably cost-effective AC services and promised excellent
    outcomes that are backed by a warranty.

    ReplyDelete
  58. Looking for a 4 star hotel in Gurgaon? look no further than the Haut Monde Hotel.
    The hotel also offers a wide range of amenities for business travellers, including function rooms, boardrooms, and even a business centre. Plus, you'll have access to free Wi-Fi and high-speed internet throughout the hotel. All of these features make the Haut Monde Hotel the perfect place to stay during your visit

    ReplyDelete
  59. NRSKitchen is one of the most reputable and bestrestaurant equipment Manufacturers in Delhi. It has more than 15 years of experience serving a number of industrial kitchens.We provide high-quality, specialist cooking equipment
    that is tailored to your needs.

    ReplyDelete
  60. Gurgaon has plenty to offer in terms of auto repair. Highly equipped workshops at Vishwakarma Automobiles provide you the greatest services, excellent quality, best prices, and genuine spare parts for routine maintenance.The best car service in Gurgaon have the knowledge and tools necessary to do the task swiftly and correctly. Phone now.

    ReplyDelete
  61. If you are looking for the best cardiologist in Mohali With a team of highly qualified and experienced professionals, ACEheartinstitute is the premier cardiology clinic in Mohali, you can feel the warm and friendly atmosphere
    and the staff’s commitment to providing the highest quality of care. Their futuristic facility is equipped with the latest technology to ensure that their patients receive the best care possible. .They offer the highest quality of care, so you can rest assured that you are in good.

    ReplyDelete

  62. Best courses for Diploma in IFRS, Our special IFRS training arrives at a much lower cost than standard providers and proposes the flexibility to handle your study objectives, job, and life.

    ReplyDelete

  63. Get the most bang for your buck withRefurbished MacBook's in India! We offer certified pre-owned Apple MacBook's at unbeatable prices and features.

    ReplyDelete
  64. There are many of bakery equipment manufacturers in Delhi. NRSKitchen is a well known and specialized bakery equipment dealer in Delhi serving commercial bakeries, consumers, and bakery organizations.We can provide you with the perfect perspective and persona to make your storytelling more enjoyable and interesting.

    ReplyDelete
  65. Soapbox Studios is the best photographer in Gurgaon. We specialize in wedding, family, and commercial photography. Our team is dedicated to providing you with excellent service and quality images.we offer a variety of services that
    will help make your photo experience unforgettable

    ReplyDelete
  66. Best Preschool in Gurgaon and Activity Centre is one of the leading preschools in Gurgaon, builds a strong foundation for children’s future. We offers holistic education that meets international standards, it has a friendly, fun, warm, safe nurturing and stress-free environment.

    ReplyDelete
  67. If you are looking for the best cs coaching in jaipur best cs coaching in jaipur , you have come to the right place. Anil Sharma Classes  offer complete range of commerce courses like CA, CS, CAM etc.

    ReplyDelete
  68. Are you looking for the best-refurbished macbook in India for your budget? We are excited to introduce you to our best macbook for your professional career. All our devices are working perfectly and are 100% tested for a better experience. It can help you to do heavy task and projects in an easy way and its powerful processor help you to gain unlimited faster experience. Battery life is very strong you don't need to worry about charge time to time. That's why we have a great business of refurbished macbook air India in the market

    ReplyDelete
  69. NRSKitchen is one of the premier Bakery Equipment Manufacturer . The company has been providing top-notch bakery equipment for many years, boasting an excellent track record in terms of quality and efficiency. NRSKitchen has a wide range of products to choose from.

    ReplyDelete
  70. Leading the sustainability movement, Eduyush provides ESG certification to businesses looking to have a beneficial influence on the environment, society, and government. Our thorough certification programme assesses a company's performance and practises in crucial areas including ethical governance, reducing carbon footprints, and employee wellbeing.

    ReplyDelete