Changeset 12032 for firmware


Ignore:
Timestamp:
09/08/11 12:55:58 (13 years ago)
Author:
weitzel
Message:
FTU: just some changes in the testbench
File:
1 edited

Legend:

Unmodified
Added
Removed
  • firmware/FTU/FTU_top_tb.vhd

    r10050 r12032  
    288288    -- wait until FTU is initialized
    289289    ---------------------------------------------------------------------------
    290     wait for 150us;
    291     ---------------------------------------------------------------------------
    292     -- test one RS485 command (28 byte)
    293     ---------------------------------------------------------------------------
     290    --wait for 150us;
     291    ---------------------------------------------------------------------------
     292    -- test broken RS485 command
     293    ---------------------------------------------------------------------------
     294--    assign_rs485("01000000"); --start delimiter
     295--    wait for 0us;
     296--    assign_rs485("00000000"); --FTU address
     297--    wait for 0ns;
     298--    assign_rs485("11000000"); --FTM address
     299--    wait for 0ns;
     300--    assign_rs485("00000001"); --FTM firmware ID
     301--    wait for 0ns;
     302--    assign_rs485("00000110"); --instruction
     303--    wait for 0us;
     304--    assign_rs485("00010100"); --data byte 01
     305--    wait for 0ns;
     306--    assign_rs485("00000000"); --data byte 02
     307--    wait for 0ns;
     308--    assign_rs485("00000000"); --data byte 03
     309--    wait for 0ns;
     310--    assign_rs485("00000000"); --data byte 04
     311--    wait for 0ns;
     312--    assign_rs485("00000000"); --data byte 05
     313--    wait for 0ns;
     314--    assign_rs485("00000000"); --data byte 06
     315--    wait for 0ns;
     316--    assign_rs485("00000000"); --data byte 07
     317--    wait for 0ns;
     318--    assign_rs485("00000000"); --data byte 08
     319--    wait for 0ns;
     320--    assign_rs485("00000000"); --data byte 09
     321--    wait for 0ns;
     322--    assign_rs485("00000000"); --data byte 10
     323--    wait for 0ns;
     324--    assign_rs485("00000000"); --data byte 11
     325--    wait for 0ns;
     326--    assign_rs485("00000000"); --data byte 12
     327--    wait for 0ns;
     328--    assign_rs485("00000000"); --data byte 13
     329--    wait for 0ns;
     330--    assign_rs485("00000000"); --data byte 14
     331--    wait for 0ns;
     332--    assign_rs485("00000000"); --data byte 15
     333--    wait for 0ns;
     334--    assign_rs485("00000000"); --data byte 16
     335--    wait for 0ns;
     336--    assign_rs485("00000000"); --data byte 17
     337--    wait for 0ns;
     338--    assign_rs485("00000000"); --data byte 18
     339--    wait for 0ns;
     340--    assign_rs485("00000000"); --data byte 19
     341--    wait for 0ns;
     342--    assign_rs485("00000000"); --data byte 20
     343--    wait for 0ns;
     344--    assign_rs485("00000000"); --data byte 21
     345--    wait for 0ns;
     346--    assign_rs485("00000000"); --CRC error counter (not used)
     347--    wait for 0ns;
     348    assign_rs485("01001101"); --check sum
     349    ---------------------------------------------------------------------------
     350    -- send regular RS485 command
     351    ---------------------------------------------------------------------------
     352    wait for 8us;
    294353    assign_rs485("01000000"); --start delimiter
    295354    wait for 0us;
     
    300359    assign_rs485("00000001"); --FTM firmware ID
    301360    wait for 0ns;
    302     assign_rs485("00000110"); --instruction
     361    assign_rs485("00000000"); --instruction
    303362    wait for 0us;
    304     assign_rs485("00010100"); --data byte 01
     363    assign_rs485("00000001"); --data byte 01
    305364    wait for 0ns;
    306365    assign_rs485("00000000"); --data byte 02
     
    346405    assign_rs485("00000000"); --CRC error counter (not used)
    347406    wait for 0ns;
    348     assign_rs485("01001101"); --check sum
    349     ---------------------------------------------------------------------------
    350     -- wait enough time and send another command
    351     ---------------------------------------------------------------------------
    352     wait for 1500us;
     407    assign_rs485("01010010"); --check sum
     408    ---------------------------------------------------------------------------
     409    -- repeat regular RS485 command after FTM time-out
     410    ---------------------------------------------------------------------------
     411    wait for 2000us;
    353412    assign_rs485("01000000"); --start delimiter
    354413    wait for 0us;
Note: See TracChangeset for help on using the changeset viewer.