[SOLVED] COMP4300  - Lab Exercise One

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

Objective

This lab is aimed at getting you familiar with using the ModelSim simulator. The circuits you will be simulating should be familiar to you from your digital logic course.

Instructions

Write a VHDL program consisting of a single entity whose architecture is a single process that implements an XOR gate. That is, a circuit which behaves as specified in the following truth table. You should implement your architecture as a single process.

 

  • inputs |outputs
  • ——————+—————
  • a_in b_in      | result
  • ——————+————— 0 0         | 0
  • 0 1         | 1
  • 1 0         | 1
  • 1 1         | 0

 

 

Use exactly the names given above for the signals. All your signals should be of type bit (NOT integer).

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.