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

Subversion Repositories plasma

[/] [plasma/] [tags/] [V3_0/] [tools/] [test.c] - Diff between revs 33 and 42

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 33 Rev 42
Line 1... Line 1...
/*-------------------------------------------------------------------
/*-------------------------------------------------------------------
-- TITLE: MIPS CPU test code
-- TITLE: M-lite CPU test code
-- AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
-- AUTHOR: Steve Rhoads (rhoadss@yahoo.com)
-- DATE CREATED: 4/21/01
-- DATE CREATED: 4/21/01
-- FILENAME: test.c
-- FILENAME: test.c
-- PROJECT: MIPS CPU core
-- PROJECT: M-lite CPU core
-- COPYRIGHT: Software placed into the public domain by the author.
-- COPYRIGHT: Software placed into the public domain by the author.
--    Software 'as is' without warranty.  Author liable for nothing.
--    Software 'as is' without warranty.  Author liable for nothing.
-- DESCRIPTION:
-- DESCRIPTION:
--   The executable image of this file is used as input to the VHDL.
--   The executable image of this file is used as input to the VHDL.
--
--
Line 16... Line 16...
--
--
--   Save the opcodes in "code.txt".
--   Save the opcodes in "code.txt".
--
--
--   The interrupt vector is set to address 0x30.
--   The interrupt vector is set to address 0x30.
--------------------------------------------------------------------*/
--------------------------------------------------------------------*/
#ifdef MIPS 
#ifdef MLITE
#undef putchar
#undef putchar
// The MIPS CPU VHDL supports a virtual UART.  All character writes
// The M-lite CPU VHDL supports a virtual UART.  All character writes
// to address 0xffff will be stored in the file "output.txt".
// to address 0xffff will be stored in the file "output.txt".
#define putchar(C) *(volatile unsigned char*)0xffff=(unsigned char)(C)
#define putchar(C) *(volatile unsigned char*)0xffff=(unsigned char)(C)
void isr_enable(int);
void isr_enable(int);
#else
#else
#define isr_enable(A)
#define isr_enable(A)
#endif
#endif
 
 
char text[]="Testing the MIPS-lite core.\n";
char text[]="Testing the M-lite core.\n";
char buf[20];
char buf[20];
int xyz=0xbadbeef;
int xyz=0xbadbeef;
int abc;
int abc;
 
 
char *strcpy2(char *s, const char *t)
char *strcpy2(char *s, const char *t)

powered by: WebSVN 2.1.0

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