OpenCores
URL https://opencores.org/ocsvn/igor/igor/trunk

Subversion Repositories igor

[/] [igor/] [trunk/] [simulator/] [memory.h] - Rev 4

Compare with Previous | Blame | View Log

#ifndef _MEMORY_H_
#define _MEMORY_H_
 
#include "types.h"
 
#define MEMORY_ADDRESS_SPACE_SIZE 0x100000000
#define DEFAULT_MEMORY_SIZE 1024*1024*2
 
int memory_init(unsigned int memsz, char *memfile);
void memory_load_from_file(char *memfile);
void memory_write_to_file(char *outfile);
void memory_write_part_to_file(char *memfile, int start, int length);
void memory_set(unsigned int pos, reg_t value);
reg_t memory_get(unsigned int pos);
int memory_size(void);
 
#endif /* _MEMORY_H_ */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.