VHDL: Programming By Example, Fourth Edition

Appendix B: VHDL Reference Tables

This appendix focuses on tables of information that are useful when writing VHDL descriptions. Most of the information in the tables is available in the text of the book, however, these tables consolidate the information into one area for easy reference.

Table B-1 lists all of the different kinds of statements alphabetically and includes an example usage.

Table B-1

Statement or Clause

Example(s)

Access Type

TYPE access_type IS ACCESS type_to_be_accessed;

Aggregate

record_type := (first, second, third);

Alias

ALIAS opcode : BIT_VECTOR (0 TO 3) IS INSTRUCTION(10 TO 13);

Architecture

ARCHITECTURE architecture_name OF entity name IS

-- declare some signals here

BEGIN

-- put some concurrent statements here

END architecture_name;

Array Type

TYPE array_type IS ARRAY (0 TO 7) OF BIT;

Assert

ASSERT x > 10 REPORT x is too small SEVERITY ERROR;

Attribute Declaration

ATTRIBUTE attribute_name : attribute_type;

Attribute Specification

ATTRIBUTE attribute_name OF entity_name : entity_class IS value;

Block Statement

block_name : BLOCK

-- declare some stuff here

BEGIN

-- put some concurrent statements here

END BLOCK block_name;

Case Statement

CASE some_expression IS

WHEN some_value =>

-- do_some_stuff

WHEN some_other_value =>

-- do_some_other_stuff

WHEN OTHERS =>

-- do_some_default_stuff

END CASE;

Statement or Clause

Example(s)

Component Declaration

COMPONENT component_name

PORT (port1_name : port1_type;

port2_name : port2_type;

port3_name : port3_type);

END COMPONENT;

Component Instantiation

instance_name : component_name PORT MAP

(first_port, second_port, third_port);

instance_name : component_name PORT MAP

(formal1 => actual1, formal2 => actual2);

Conditional Signal Assignment

target <= first_value WHEN (x = y) ELSE

second_value WHEN a >= b ELSE

third_value;

Configuration...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Backplanes
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.