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

Subversion Repositories mips789

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /mips789/branches/avendor/bench/LED
    from Rev 35 to Rev 51
    Reverse comparison

Rev 35 → Rev 51

/LED.c
0,0 → 1,31
/******************************************************************
* *
* Author: Liwei *
* *
* This file is part of the "mips789" project. *
* Downloaded from: *
* http://www.opencores.org/pdownloads.cgi/list/mips789 *
* *
* If you encountered any problem, please contact me via *
* Email:mcupro@opencores.org or mcupro@163.com *
* *
******************************************************************/
 
#include "..\..\clib\dvc_lib.h"
 
void main2()
{
unsigned char i=0 ;
while(1)
{
dis_byte(i++);
// dly_us(100000);
if (i%2)led1_on();else led1_off();
if (i%2)led2_on();else led2_off();
//uart0_putc('!');
 
}
}
/led.bat
0,0 → 1,18
path;
path=..\..\gccmips_elf
del *.axf
del *.txt
as -o boot.o ..\plasmaboot.asm
gcc -O2 -O -Wall -c -s ..\..\clib\dvc_lib.c
gcc -O2 -O -Wall -c -s LED.c
 
ld.exe -Ttext 0 -eentry -Map test.map -s -N -o test.axf boot.o dvc_lib.o LED.o
 
objdump.exe --disassemble test.axf > list.txt
 
convert_sp
gensim
genmif
#ser_dld 9600 COM1 N
copy *.mif ..\..\quartus2\*.mif
copy *.v ..\MODELSIM\*.v
/clean.bat
0,0 → 1,10
del *.bak
del *.map
del *.o
del *.exe
del *.axf
del *.txt
del *.bin
del sim_ram.v
del *.mif
del transcript

powered by: WebSVN 2.1.0

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