Hi Katty

This is running my designs: *first this is for modeinterleave *

root@roach:/boffiles# ./s1_2013_May_02_1157.bof &
[1] 519
root@roach:/boffiles# ps
  PID TTY          TIME CMD
  506 ttyS0    00:00:00 login
  507 ttyS0    00:00:00 bash
  519 ttyS0    00:00:00 s1_2013_May_02_
  520 ttyS0    00:00:00 ps
root@roach:/boffiles# cd /proc/519/hw/ioreg
root@roach:/proc/519/hw/ioreg# ls
acc_cnt      even             snapshot_ctrl sys_clkcounter
acc_len      even1            snapshot_status sys_rev
adc_ctrl0    fft_shift        snapshot_tr_en_cnt sys_rev_rcs
adc_sum_sq0  iadc_controller  snapshot_trig_offset sys_scratchpad
control      odd              status trig_level
duty_cnt     odd1 sync_cnt
duty_period  snapshot_bram    sys_board_id

*Second is for spectrometer with 2048 channel is:

*
root@roach:/proc/515/hw/ioreg# ls

acc_cnt even odd sys_clkcounter sys_scratchpad
acc_len    gain             sync_cnt         sys_rev
cnt_rst iadc_controller sys_board_id sys_rev_rcs


my question is, what is registers replaced a cnt_rst in mode interleaved? for change the .py


From Dave's email it seems that one bit from the control register is used as cnt_rst in the interleaved design. Instead of there being one register called cnt_rst, there is now a piece of the control register. You need to understand which piece of the control register and modify the code to use this piece.

It may be worth going through tut1 if you have not already done so to understand the fundamentals of how software registers work in a design. Without a good understanding of this concept you will keep running into these types of problems.

Regards
Andrew




2013/5/28 katherine viviana cortes urbina <[email protected] <mailto:[email protected]>>

    Hi all,

    I found a difference the designs between spectrometer 2048 channel
    and spectrometer 2048 channel mode interleave, this is block
    counter sys_rst for example in the blocks acc_cntrl. I dont
    knowhow this sys_rst introduced
     in my python code.

    any ideas?

    Cheers Katty

    pd: you can to see attachments


    2013/5/23 David MacMahon <[email protected]
    <mailto:[email protected]>>

        Hi, Katty,

        It sounds like you're making progress!

        On May 23, 2013, at 2:03 PM, katherine viviana cortes urbina
        wrote:

        > I was to working with the python  from the wiki. I adapt the
        tut3.py for the design "spectrometer with a stream at 2Gsps
        using ADC interleave mode" This design is made for Jason
        Manley and I only modifiqued same blocks for check up.

        If there is a mismatch between python code and model file on
        the wiki, it would be great to get it fixed.  If you're mixing
        and matching python scripts and model files from various
        sources, then you will have to resolve any compatibility
        issues.  That can actually be a good learning experience.  I
        always say that you learn more when things don't work than
        when they do!

        Dave




Reply via email to