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

    Message

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

    From: Patrik Thalin<patrik.thalin@s...>
    Date: Wed Jul 20 11:10:19 CEST 2005
    Subject: [openrisc] openrisc MAC instructions
    Top
    It is implemented. But you only get 32 of the 64 bits in the mac
    regiser. In the file or1200_mult_mac.v you can change which bits that is
    returned by l.macrc. Default is "result = mac_r[59:28];"

    - Patrik

    michael scott skrev:
    > Hi All,
    > Can anybody confirm if the instructions l.mac/lmac.i/l.macrc are
    > fully implemented in
    > or1200 assuming my defines are set correctly ?
    >
    > `define OR1200_MAC_IMPLEMENTED
    > `define OR1200_MULT_IMPLEMENTED
    > `define OR1200_IMPL_DIV
    > `define OR1200_MAC_ADDR 0
    > `define OR1200_MAC_SPR_WE
    >
    > (all uncommented defines)
    >
    > I've had some success with l.mac in that I can run the attached code and see
    > the internal signal 'mac_r' increase in increments of 14 (as expected)
    > but on issuing l.macrc r4 I can't seem to extract the final value to r4
    > (even though it's correct)
    >
    > If I replace the instruction l.mac r2,r6 with l.maci r2,0x07 the
    > mac_r doesn't increment as before but extracting the final via l.macrc r4
    > does work
    >
    > no problems with l.mul/l.div though !
    >
    > Regards,
    >
    > Mike Scott
    >
    > ___________________________________________________
    > Jennic Ltd, Furnival Street, Sheffield, S1 4QT, UK
    > www.jennic.com Tel: +44 (0) 114 2812655 Confidential
    > ___________________________________________________
    >
    >
    >
    >
    >
    > ------------------------------------------------------------------------
    >
    > _______________________________________________
    > http://www.opencores.org/mailman/listinfo/openrisc


    --
    ------------------------
    Patrik Thalin
    patrik.thalin@s...
    Mobile +46 (0)704 14 80 47
    Phone +46 (0)13 342 00 39

    Signal Processing Devices Sweden AB
    Collegiumhuset
    Teknikringen 7
    SE-583 30 Linköping
    Sweden

    www.spdevices.com

    ReferenceAuthor
    [openrisc] openrisc MAC instructionsMichael scott

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