Shop OBEX P1 Docs P2 Docs Learn Events
Cogjects - load cog code from SD and save hub ram - Page 3 — Parallax Forums

Cogjects - load cog code from SD and save hub ram

13»

Comments

  • Dr_AculaDr_Acula Posts: 5,484
    edited 2011-04-12 00:03
    It should work the same as your existing code - you can add spin methods or edit the spin code just as a normal program.

    If you edit the cog code, then you need to recompile with F8, save the binary and recopy it to the sd card.

    Did you want any others converted?
  • max72max72 Posts: 1,155
    edited 2011-04-12 02:12
    I'm happy with it, thanks.
    The only missing bit is the 4 ports, but I'll use as it is and I'll try to use pasm space for variables.
    Thanks again.
    Massimo
  • Toby SeckshundToby Seckshund Posts: 2,027
    edited 2011-04-12 03:42
    @ Dr_A

    Hi, I was thinking about farming out 16KB or so of the HUB to an external processor but stll using the Prop as all the periferals. I know that there is not enough in the HUB already, it's just me being perverse.
  • Heater.Heater. Posts: 21,230
    edited 2011-04-12 04:37
    Not so perverse. I have had similar ideas. The PRAM (Prop as RAM).

    For example if you want to run a Z80 emulation and CP/M no on Prop you need at least 64K RAM. So why no, I once reasoned, use a second or third Prop and borrow the RAM from them across a parallel bus. Basically building a DracBlade where instead of using RAMs and latches you just throw more Props at it.

    Now, arranged carefully one could hide any peripherals into COGs freeing up most RAM in a Prop to be served up to a master Prop. Those peripherals would be also be available to the master Prop in a memory mapped fashion just like real ones.
  • Jorge PJorge P Posts: 385
    edited 2011-04-29 01:03
    I think your cogjects seem awefull similar in function as loadable modules under the NitrOS-9 for the 6809 mpu. With those modules you can merge two or more to fit them nicely within a certain k boundry, in the case of the prop it would need to be 2k. Once the files are merged they are loaded into memory and ocupy less space than if they were each loaded seperately.

    I dont know if Heater ever checked his PM i sent a few months back, but I have over 2gb of just documentation for the OS9-L1, L2, and NitrOS-9(most current) OS's, not including full source code for NitrOS-9(public domain) as well as all other public domain software ever released for OS-9 and its upgrade NitrOS-9 since 1983. I know they are quite different from the Propeller but if you read up on some of the docs I think it would offer you a wealth of Ideas on how to do the same in a Propeller OS or on a Hydra system. The source files are in dsk format used by M.E.S.S. Don't reinvent the wheel if you can help it.... If you, Heater, Kye, or Dr_Acula are interested in this archive PM me.
Sign In or Register to comment.