orca-sim
Classes | Enumerations
TDmaMult.hpp File Reference
#include "MemoryMap.h"
#include <iostream>
#include <string>
#include "TimedModel.hpp"
#include "UMemory.hpp"
#include "USignal.hpp"

Go to the source code of this file.

Classes

class  TDmaMult
 

Enumerations

enum  DmaState { DmaState::WAIT_CONFIG_STALL, DmaState::COPY_FROM_MEM, DmaState::COPY_TO_CPU, DmaState::FLUSH }
 

Enumeration Type Documentation

§ DmaState

enum DmaState
strong
Enumerator
WAIT_CONFIG_STALL 
COPY_FROM_MEM 
COPY_TO_CPU 
FLUSH 

Definition at line 48 of file TDmaMult.hpp.

48  {
49  // wait cpu to configure the DMA, indicated by _sig_dma_prog. Then, the DMA
50  // raises _sig_stall to stall the cpu while the DMA is working.
52  // copy content from the NN memory to the MAC internal operand registers.
54  // just waste a cycle to copy the MAC results to the MMIO.
56  // deassert the _sig_stall, returning to the wait mode.
57  // The CPU returns to activity.
58  FLUSH
59 };