sheet1_ele 413_solution
sheet1_ele 413_solution
Sheet1
The software which is loaded onto a microcontroller is a set of instructions that govern
how the system runs.
11. Are statements in VHDL concurrent (like in AHDL) or sequential (like in C or Java)?
Explain.
VHDL statements are generally concurrent, with the exception of statements inside a
process, which are executed sequentially
12.
i. Which of the following are legal VHDL identifiers? 123A, A_123, _A123,
A123_, c1__c2, and, and1
ii. Which of the following identifiers are equivalent? aBC, ABC, Abc, abc
Basic VHDL identifiers are not case sensitive, i.e. upper- and lower-case letters are
considered identical, hence all given identifiers are equivalent
13. A full adder has the following truth table for its sum (S) and carry (Co) outputs in terms
of its inputs A, B and carry in (Ci).
Derive expressions for S and Co using only AND and OR operators. Hence write a VHDL
description of a full adder as a netlist of AND and OR gates and inverters.
14. Write a VHDL description of the following combinational circuit using concurrent
statements. Each gate has a 5-ns delay, excluding the inverter, which has a 2-ns delay.
15. Write a VHDL design entity that takes a five-bit input, input, and outputs a five-bit value
that is equal to the input with its bits reversed. For example, input 01100, gives output
00110 and input 11110 gives output 01111. You must implement your design entity
using a single concurrent assignment statement. You will need to use the concatenation
operator.
16. The following model code was produced to represent a 2-input NAND gate. It contains
several code errors. What are they?