Components Provided

Contents

  1. Corrector
    1. Ports
    2. Explanation
  2. Delayed Logic Gates

Corrector

Ports

The ports of the module are provided below with a description:

Port Direction Port Name Port Width (bits) Description
INPUT SUM 4 4-bit sum
INPUT SEL 1 Subtracts if SEL == 1, adds otherwise
OUTPUT OUT 4 Value after performing the correction step

Explanation

This logic should be familiar for you as you did this for Lab 3. We provide a component here for you to use, but you are more than welcome to use your own. The corrector detects whether or not a correction is required, and if so then only does it perform the correction step (add or subtract 6), otherwise the SUM is passed to the OUT.

When calculating performance, please use the delayed version of the corrector we have provided, or use the delayed gates in your own corrector unit that you create.

Delayed Logic Gates

Delayed components (suffixed with a D) cannot be exported to Verilog and hence cannot be autograded. Please do not use these components if we are testing it logically.

The delayed logic gates are identical in behavior to traditional Digital logic gates, except you have to define the number of inputs a special way. When you right click the component, you will find a text field denoting the number of inputs to use for the logic gate. Please fill this field with an integer value denoting to how many inputs you want to use.

For example, to use 3 inputs, you would fill in the field with:

inputCount := 3;

Please do not input any numbers that are less than 2 or greater than 4 (we cannot guarantee your circuit working if you use numbers outside of these bounds).

These gates all have a predefined delay used to help calculate the performance. For more information, please refer to the Performance Analysis page.


This page was last updated on November 30 2024 at 05:47 AM (UTC).