24 lines
461 B
C
24 lines
461 B
C
/*
|
|
* Utils.h
|
|
*
|
|
* Created on: Mar 10, 2014
|
|
* Author: jonny
|
|
*/
|
|
|
|
#ifndef UTILS_H_
|
|
#define UTILS_H_
|
|
|
|
#include "common/dramExtension.h"
|
|
#include <systemc.h>
|
|
|
|
unsigned int getStartAddress(Bank bank);
|
|
|
|
sc_time delayByConstraint(sc_time previous, sc_time start, sc_time constraint);
|
|
|
|
enum Alignment {UP, DOWN};
|
|
|
|
const sc_time clkAlign(sc_time time, sc_time clk, Alignment alignment = UP);
|
|
bool isClkAligned(sc_time time, sc_time clk);
|
|
|
|
#endif /* UTILS_H_ */
|