LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: cvs at opencores.org<cvs@o...>
    Date: Thu Jan 25 22:20:07 CET 2007
    Subject: [cvs-checkins] MODIFIED: rise ...
    Top
    Date: 00/07/01 25:22:20

    Modified: rise/examples Makefile subroutine.s
    Added: rise/examples Makefile.simple
    Log:
    - Added makefile example to improve design flow.

    - Added subroutine example.


    Revision Changes Path
    1.2 rise/examples/Makefile

    http://www.opencores.org/cvsweb.shtml/rise/examples/Makefile.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: Makefile
    ===================================================================
    RCS file: /cvsroot/cwalter/rise/examples/Makefile,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- Makefile 25 Jan 2007 20:32:15 -0000 1.1
    +++ Makefile 25 Jan 2007 21:20:06 -0000 1.2
    @@ -3,7 +3,7 @@
    #
    # Copyright (c) 2006 Christian Walter, Vienna 2006.
    #
    -# $Id: Makefile,v 1.1 2007/01/25 20:32:15 cwalter Exp $
    +# $Id: Makefile,v 1.2 2007/01/25 21:20:06 cwalter Exp $
    #
    # ---------------------------------------------------------------------------

    @@ -42,6 +42,7 @@

    %.bin: %.elf
    $(OBJCOPY) -O binary $< $@
    +# $(OBJCOPY) -j .text -O binary $< $@

    %.vhd: %.bin
    $(BIN2VHD) $< $@



    1.2 rise/examples/subroutine.s

    http://www.opencores.org/cvsweb.shtml/rise/examples/subroutine.s.diff?r1=1.1&r2=1.2

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: subroutine.s
    ===================================================================
    RCS file: /cvsroot/cwalter/rise/examples/subroutine.s,v
    retrieving revision 1.1
    retrieving revision 1.2
    diff -u -b -r1.1 -r1.2
    --- subroutine.s 25 Jan 2007 20:32:15 -0000 1.1
    +++ subroutine.s 25 Jan 2007 21:20:06 -0000 1.2
    @@ -26,16 +26,20 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    *
    - * File: $Id: subroutine.s,v 1.1 2007/01/25 20:32:15 cwalter Exp $
    + * File: $Id: subroutine.s,v 1.2 2007/01/25 21:20:06 cwalter Exp $
    */

    .text
    - .org 0x0000
    -
    -reset:
    + .global _start
    +_start:
    ld r12, addrlo(stack)
    ldhb r12, addrhi(stack)
    + ld r11, addrlo(func1)
    + ldhb r11, addrhi(func1)
    + jmp r11
    + jmp r0

    + .org 0x0500
    func1:
    ld pc, lr




    1.1 rise/examples/Makefile.simple

    http://www.opencores.org/cvsweb.shtml/rise/examples/Makefile.simple?rev=1.1&content-type=text/x-cvsweb-markup

    Index: Makefile.simple
    ===================================================================
    #
    # RISE- Makefile
    #
    # Copyright (c) 2006 Christian Walter, Vienna 2006.
    #
    # $Id: Makefile.simple,v 1.1 2007/01/25 21:20:06 cwalter Exp $
    #
    # ---------------------------------------------------------------------------

    BASE = /opt/gcc-rise/bin AS = $(BASE)/rise-as OBJCOPY = $(BASE)/rise-objcopy LD = $(BASE)/rise-ld BIN2VHD = bin2vhd ASFLAGS = LDFLAGS = TGT = subroutine ASRC = subroutine.s OBJS = $(ASRC:.s=.o) .PHONY: clean all all: $(TGT).bin $(TGT).vhd clean: rm -f $(OBJS) rm -f $(BIN) # --------------------------------------------------------------------------- # rules for code generation # --------------------------------------------------------------------------- %.o: %.s $(AS) $(ASFLAGS) -o $@ $< %.bin: %.o $(OBJCOPY) -j .text -O binary $< $@ %.vhd: %.bin $(BIN2VHD) $< $@

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.