MAC architecture (adder / accumulator) 16 bits

Thread Starter

Pollyana Araujo

Joined Aug 9, 2017
3
Hello! I need to do a VHDL project of a 16 bit MAC (Adder / Accumulator)
architecture with a structure using RAM, ROM, Multiplexer and Counter.
Does anyone have any idea how this structure would look?
thanks.
 

WBahn

Joined Mar 31, 2012
32,823
There are several possible things a such a component might do, depending on use. For instance, the structures in a microprocessor are generally different than in a digital signal processor because the common operations of the two are different.

So the first thing you need to do is describe, in detail, exactly how your MAC is supposed to behave. What are the inputs, what are the outputs, what internal information is stored. You can't design something until you have a clear picture of what that something is supposed to do.
 

WBahn

Joined Mar 31, 2012
32,823
Forget about the structure. First define what it is that this MAC is supposed to do.

Let's say that this was an adder/accumulator. You might define it's behavior something like the following:

The input data is 8-bits wide and the output is 16-bits wide. There is a RST input that sets the output to all zero when it is HI. There is an update input that that, on a rising edge, makes the output become the sum of the current output and the present data value. The data and the output are represented using two's complement.

Now you can start designing the logic because you have a definition of what that logic is supposed to achieve. Until you have that, you are wasting your time.
 
Top