SystemC: Synchronous Components


Objectives

Design Problems

For this lab, you are required to write a SystemC description at the behavioral level of a 4-bit up/down counter and a 4-byte register file. Once you have these two components, you need to write a testbench and simulation file to show the correctness of each one. For a general description of registers look in the Embedded Systems Design book on pages 34 and 35.

Up/Down Counter  

The inputs, outputs, and functionality of the up/down counter are as follows:

Parallel Load/Shift Register

 

Size is 4 bytes, i.e. four rows of 8 bits. Each row (byte) is addressable.

The inputs, outputs, and functionality of the parallel load/shift register are as follows:

.