Propeller II: Emulation of the P2 on FPGA boards (Prop123-A7/A9, DE0-NANO, DE2-115, etc)

1151618202124

Comments

  • SapiehaSapieha Posts: 2,964
    edited January 2013 Vote Up0Vote Down
    Hi Chip.

    On PCB I made only Standard SPI is used.
    Regards
    Sapieha
    _____________________________________________________
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it as simple as possible yet as versatile/usable as possible.
  • cgraceycgracey Posts: 9,600
    edited January 2013 Vote Up0Vote Down
    Sapieha wrote: »
    Hi Chip.

    On PCB I made only Standard SPI is used.

    I've got it figured out now. There are many confusing pinout diagrams out there, but I've got the locations and names of the four pins of importance.
  • jazzedjazzed Posts: 11,803
    edited January 2013 Vote Up0Vote Down
    cgracey wrote: »
    I've got it figured out now. There are many confusing pinout diagrams out there, but I've got the locations and names of the four pins of importance.

    The Spinneret product provides all pins on the SDCard interface plus a card detect. The card detect circuit would be useful for your propeller computer. Just using the 4 pin interface limits us in the kind of hardware we can deploy (A QuadSPI Flash or other peripherals SDCard footprint for example).

    I'm fine with the 4 pin interface of course if that makes the most sense.

    What did the DE2-115 FPGA config image you provided before use?
  • SapiehaSapieha Posts: 2,964
    edited January 2013 Vote Up0Vote Down
    Hi Chip.

    If You have any questions on PIN's used --- ask -- I can make list if that can help.

    And one Question ... Will pin's that will be used to DAC's have possibility even be addressed as standard I/O pins?



    cgracey wrote: »
    I've got it figured out now. There are many confusing pinout diagrams out there, but I've got the locations and names of the four pins of importance.
    Regards
    Sapieha
    _____________________________________________________
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it as simple as possible yet as versatile/usable as possible.
  • cgraceycgracey Posts: 9,600
    edited January 2013 Vote Up0Vote Down
    jazzed wrote: »
    The Spinneret product provides all pins on the SDCard interface plus a card detect. The card detect circuit would be useful for your propeller computer. Just using the 4 pin interface limits us in the kind of hardware we can deploy (A QuadSPI Flash or other peripherals SDCard footprint for example).

    I'm fine with the 4 pin interface of course if that makes the most sense.

    What did the DE2-115 FPGA config image you provided before use?

    The DE2-115 configuration file I made for David Betz (which he posted for anyone else that was interested) connected all seven pins. I'll just keep them all, and arrange them as such in the next DE2-115 configuration file that uses the new add-on board we made:

    (Prop2 pin = xxxx)

    63 = DATA3 (SPI CS)
    62 = DATA2
    61 = DATA1
    60 = DATA0 (SPI DO)
    59 = CMD (SPI DI)
    58 = CLK (SPI SCLK)
    57 = WP
  • David BetzDavid Betz Posts: 12,523
    edited January 2013 Vote Up0Vote Down
    cgracey wrote: »
    The DE2-115 configuration file I made for David Betz (which he posted for anyone else that was interested) connected all seven pins. I'll just keep them all, and arrange them as such in the next DE2-115 configuration file that uses the new add-on board we made:

    (Prop2 pin = xxxx)

    63 = DATA3 (SPI CS)
    62 = DATA2
    61 = DATA1
    60 = DATA0 (SPI DO)
    59 = CMD (SPI DI)
    58 = CLK (SPI SCLK)
    57 = WP
    Sounds good!
  • David CarrierDavid Carrier Posts: 285
    edited January 2013 Vote Up0Vote Down
    Chip,
    There haven't been any restrictions on using an SD-card in 4-bit mode (which uses all of the pins) since the SD association released their specifications for it in 2006. It hasn't been implemented on the Propeller yet, since it wouldn't be faster than SPI, at least when using only one cog. The protocol was designed to be implemented in silicon, so the CRCs (which are required in 4-bit mode) are calculated separately for the data transmitted on each pin, instead of together for the data as a whole. (Each of the four CRCs ends up covering every fourth bit.) With an extra cog or two thrown in to calculate CRCs, or a faster Propeller II, an SD-card in 4-bit mode could be as fast as quad-SPI flash memory.

    — David Carrier
  • Bill HenningBill Henning Posts: 6,445
    edited February 2013 Vote Up0Vote Down
    I've broken down and ordered a DE2-115 ... the DE0-Nano's are fun, but I found a single cog limiting for some of what I want to try.

    I should receive it on Monday :)
    www.mikronauts.com / E-mail: mikronauts _at_ gmail _dot_ com / @Mikronauts on Twitter
    RoboPi: The most advanced Robot controller for the Raspberry Pi (Propeller based)
  • Bill HenningBill Henning Posts: 6,445
    edited February 2013 Vote Up0Vote Down
    Better late than never...

    The DE2-115 I ordered last week arrived today!!!
    www.mikronauts.com / E-mail: mikronauts _at_ gmail _dot_ com / @Mikronauts on Twitter
    RoboPi: The most advanced Robot controller for the Raspberry Pi (Propeller based)
  • potatoheadpotatohead Posts: 9,368
    edited February 2013 Vote Up0Vote Down
    Nice! Be sure and load the SD card capable image.
    Do not taunt Happy Fun Ball! @opengeekorg ---> Be Excellent To One Another SKYPE = acuity_doug
    Parallax colors simplified: http://forums.parallax.com/showthread.php?123709-Commented-Graphics_Demo.spin<br>
  • David BetzDavid Betz Posts: 12,523
    edited February 2013 Vote Up0Vote Down
    Better late than never...

    The DE2-115 I ordered last week arrived today!!!
    Nice! When can we expect to see your CLUT-based interpreter? :-)
  • Bill HenningBill Henning Posts: 6,445
    edited February 2013 Vote Up0Vote Down
    I am afraid that has been placed on the back burner for now.

    Right now I am setting up my new lab (about 700sq ft), including the new SMT assembly area :)
    David Betz wrote: »
    Nice! When can we expect to see your CLUT-based interpreter? :-)
    www.mikronauts.com / E-mail: mikronauts _at_ gmail _dot_ com / @Mikronauts on Twitter
    RoboPi: The most advanced Robot controller for the Raspberry Pi (Propeller based)
  • David BetzDavid Betz Posts: 12,523
    edited February 2013 Vote Up0Vote Down
    Any news on further P2 instruction set documentation? What about status on the DE2-115 add-on board? I'm anxious to get started on XMM for P2! :-)
  • TubularTubular Posts: 3,144
    edited February 2013 Vote Up0Vote Down
    The 1280x1024 demo code in the latest doc from Chip.... is there any way to get that to work with the DE0 / DE2 boards, or we need to wait for physical silicon?

    I gather from the comments it's using onboard DACs, but then again the frequency is 60MHz which tends to indicate Terasic board...

    Anyone else tried this yet?
  • David BetzDavid Betz Posts: 12,523
    edited February 2013 Vote Up0Vote Down
    Today is the 20th so I guess they're busy making the first P2 chips starting today! Yay!
  • Ym2413aYm2413a Posts: 562
    edited February 2013 Vote Up0Vote Down
    Sweet!! I really hope those silicons are being printed as we speak. : ]
    I'm excited!
  • Martin HodgeMartin Hodge Posts: 1,223
    edited February 2013 Vote Up0Vote Down
    Tubular wrote: »
    The 1280x1024 demo code in the latest doc from Chip.... is there any way to get that to work with the DE0 / DE2 boards, or we need to wait for physical silicon?

    I gather from the comments it's using onboard DACs, but then again the frequency is 60MHz which tends to indicate Terasic board...

    Anyone else tried this yet?

    Have you tried running running the code and probing the outputs?
    Propeller ASC- Use your Arduino shields with the Propeller.
    Propeller DNA- A Propeller Platform compatible proto board.
  • mindrobotsmindrobots Posts: 6,498
    edited February 2013 Vote Up0Vote Down
    Tubular wrote: »
    The 1280x1024 demo code in the latest doc from Chip.... is there any way to get that to work with the DE0 / DE2 boards, or we need to wait for physical silicon?

    I gather from the comments it's using onboard DACs, but then again the frequency is 60MHz which tends to indicate Terasic board...

    Anyone else tried this yet?

    I thought Chip had said in the other thread that he was using one of the add-on boards for either the DE0 or DE2 that should be available to us faithful emulators any time real soon, now.
    MOV OUTA, PEACE <div>Rick </div><div>"I've stopped using programming languages with Garbage Collection, they keep deleting my source code!!"</div>
  • TubularTubular Posts: 3,144
    edited February 2013 Vote Up0Vote Down
    Have you tried running running the code and probing the outputs?

    Yes that's pretty much exactly what I have done.

    I upgraded the DE2 to the latest POF that David Posted (the one with the SD card support), as it also breaks out some other connections via port B (leds, switches,buttons, SD card). It was in the hope some DAC pins were also broken out.

    I loaded the sample code in successfully, then probed pins on the VGA output plug and 40 pin header.

    There are DC voltages on the VGA plug - the red signal on pin 1 about 1.43v DC, the green on pin 2 has about 1.97v DC, blue is 0.0v DC, and the syncs each have about 3.1v DC on them, but there isn't any modulation happening, its all DC. The fact those votlages are there at boot even when Prop2 *isn't* running makes me think they are just configured that way or float to those levels.

    On the 40 pin header the signals (P0..31) were floating. I added a neg pina,#1 to the sample code to set those pins to outputs, but still couldn't see any modulation there.

    I tried the DE0 too and couldn't see anything modulated either.

    @MindRobots
    Yes I look forward to those boards, but I'm desperate enough to solder my own resistor networks if that's all that's stopping the vga output.

    The real trouble is I'm not quite sure if the DAC pins are mapped out yet or not, and if so whether the sample code needs some tweaks to reflect that.
  • cgraceycgracey Posts: 9,600
    edited February 2013 Vote Up0Vote Down
    Tubular and Others,

    We'll need to send you all special add-on boards we are building right now. They should be ready to ship this week.

    We'll also need to post configuration files to go with them.
  • RaymanRayman Posts: 8,756
    edited March 2013 Vote Up0Vote Down
    I've got the DE0 emulation board (Thanks Chip!) and a DE0. I think I can find the software I need in the first post of this thread (thanks Cluso).

    Only problem I have is I don't know which way to plug the DE0 into the emulation board...
    Can anybody tell me which way it goes in?

    Hopefully, I can try out some of those VGA drivers in the other thread this week...
    Prop Info and Apps: http://www.rayslogic.com/
  • Martin HodgeMartin Hodge Posts: 1,223
    edited March 2013 Vote Up0Vote Down
    There's an arrow labeled "DE0-NANO USB" Align the USB connector on the DE0 with this arrow.
    Propeller ASC- Use your Arduino shields with the Propeller.
    Propeller DNA- A Propeller Platform compatible proto board.
  • SapiehaSapieha Posts: 2,964
    edited March 2013 Vote Up0Vote Down
    Hi Rayman.

    Look on picture Chip posted.
    http://forums.parallax.com/showthread.php/146197-DE0-Nano-and-DE2-115-add-on-boards-for-Prop2-emulation-are-ready!?p=1165738&viewfull=1#post1165738
    Be even sure You have installed that srtap that this picture show on 23 pin connector


    Rayman wrote: »
    I've got the DE0 emulation board (Thanks Chip!) and a DE0. I think I can find the software I need in the first post of this thread (thanks Cluso).

    Only problem I have is I don't know which way to plug the DE0 into the emulation board...
    Can anybody tell me which way it goes in?

    Hopefully, I can try out some of those VGA drivers in the other thread this week...
    Regards
    Sapieha
    _____________________________________________________
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it as simple as possible yet as versatile/usable as possible.
  • cgraceycgracey Posts: 9,600
    edited March 2013 Vote Up0Vote Down
    Rayman wrote: »
    I've got the DE0 emulation board (Thanks Chip!) and a DE0. I think I can find the software I need in the first post of this thread (thanks Cluso).

    Only problem I have is I don't know which way to plug the DE0 into the emulation board...
    Can anybody tell me which way it goes in?

    Hopefully, I can try out some of those VGA drivers in the other thread this week...

    There is a legend marking on the add-on board that shows that the DE0-Nano board's USB connector should be up from the arrow. You could also plug in the DE0-Nano to the add-on board so that the add-on board's text reads normally and the DE0-Nano's 2x13 header is located on the bottom, if you are holding the add-on board in front of you.
  • cgraceycgracey Posts: 9,600
    edited March 2013 Vote Up0Vote Down
    Sapieha wrote: »
    Hi Rayman.

    Look on picture Chip posted.
    http://forums.parallax.com/showthread.php/146197-DE0-Nano-and-DE2-115-add-on-boards-for-Prop2-emulation-are-ready!?p=1165738&viewfull=1#post1165738
    Be even sure You have installed that srtap that this picture show on 23 pin connector

    And be sure to put a jumper across pins 3 and 5 of the 2x13 header, like in the picture.
  • SapiehaSapieha Posts: 2,964
    edited March 2013 Vote Up0Vote Down
    Hi Chip

    Sorry my bad .........Not 23 but 26 else as You write 2x13
    cgracey wrote: »
    And be sure to put a jumper across pins 3 and 5 of the 2x13 header, like in the picture.
    Regards
    Sapieha
    _____________________________________________________
    Nothing is impossible, there are only different degrees of difficulty.
    For every stupid question there is at least one intelligent answer.
    Don't guess - ask instead.
    If you don't ask you won't know.
    If your gonna construct something, make it as simple as possible yet as versatile/usable as possible.
  • jstjohnzjstjohnz Posts: 91
    edited March 2013 Vote Up0Vote Down
    Late to the party, but up and running with the DE2, at least as far as getting into rom monitor. One question though. Prop plug works if plugged into the header on the DE2, but not if plugged into the 4-pin header on the add-on board.
  • potatoheadpotatohead Posts: 9,368
    edited March 2013 Vote Up0Vote Down
    You need the add on board FPGA cfg file.

    http://forums.parallax.com/showthread.php/146197-DE0-Nano-and-DE2-115-add-on-boards-for-Prop2-emulation-are-ready!?p=1168136&viewfull=1#post1168136

    Connect the Prop Plug with the label facing toward the center of the add on board. You should see the blinking LED's facing you.
    Do not taunt Happy Fun Ball! @opengeekorg ---> Be Excellent To One Another SKYPE = acuity_doug
    Parallax colors simplified: http://forums.parallax.com/showthread.php?123709-Commented-Graphics_Demo.spin<br>
  • fpalmansfpalmans Posts: 8
    edited March 2013 Vote Up0Vote Down
    Hi everyone,

    I am Frank, a Belgian in the Bay Area. I have been eagerly awaiting the prop 2 ever since I first started playing with the prop 1. I have found some additional time for the coming three to four months... So, I was wondering if still makes sense to jump onto the emulation bandwagon? Or, is it likely we can duel for samples at the official propeller conference (ergo: I should train in stead of play)?

    Frank.
  • David BetzDavid Betz Posts: 12,523
    edited March 2013 Vote Up0Vote Down
    fpalmans wrote: »
    Hi everyone,

    I am Frank, a Belgian in the Bay Area. I have been eagerly awaiting the prop 2 ever since I first started playing with the prop 1. I have found some additional time for the coming three to four months... So, I was wondering if still makes sense to jump onto the emulation bandwagon? Or, is it likely we can duel for samples at the official propeller conference (ergo: I should train in stead of play)?

    Frank.
    Unfortunately, I don't think real P2 chips will be available at OPC so feel free to jump on the FPGA emulation bandwagon! We'll welcome you aboard!
Sign In or Register to comment.