uC chip interface arduino
0.9.0
A interface for async and neuromrphic IC testing
|
Public Member Functions | |
def | __init__ (self, api_object, interface_id, direction) |
constructor for the async interface More... | |
def | __str__ (self) |
def | ack_pin (self) |
get the ack pin of the interface as it is on the uC More... | |
def | activate (self, req_pin, ack_pin, data_width, data_pins, mode="4Phase_Chigh_Dhigh", req_delay=0, time=0) |
activate the interface on the uC with the given parameters More... | |
def | data_from_chip (self) |
get the data recived from the chip will retun 2 lists: one with the word recoded and one with the time when it was recorded, linked by index More... | |
def | data_from_chip_and_clear (self) |
get the data recived from the chip and clear the buffer will retun 2 lists: one with the word recoded and one with the time when it was recorded, linked by index More... | |
def | data_pins (self) |
get the data pins of the interface as they are on the uC More... | |
def | data_to_chip (self) |
get the data send to the chip when they are actually send off by the uC data_to_chip will retun the data send by the uC to the device under test (DUT) More... | |
def | data_to_chip_and_clear (self) |
get the data send to the chip when they are actually send off by the uC and clear the buffer data_to_chip will retun the data send by the uC to the device under test (DUT) More... | |
def | data_width (self) |
get the data width of the interface as it is on the uC More... | |
def | errors (self) |
get the list of errors associated with this interface object More... | |
def | header (self) |
get the header this object is responcible for More... | |
def | interface_type (self) |
get the human readable type of the interface More... | |
def | process_packet (self, packet) |
process a packet from the uC, update the status of the interface object and store the data More... | |
def | req_delay (self) |
get the request delay of the interface as it is on the uC More... | |
def | req_pin (self) |
get the request pin of the interface as it is on the uC More... | |
def | send (self, word, time=0) |
send a word to the chip More... | |
def | status (self) |
get the human readable status of the interface More... | |
def | update (self) |
Definition at line 24 of file interface_async.py.
def __init__ | ( | self, | |
api_object, | |||
interface_id, | |||
direction | |||
) |
constructor for the async interface
api_object | uC_api parent object |
interface_id | id of the interface this object is responcible for |
direction | "TO_CHIP" or "FROM_CHIP" |
Definition at line 25 of file interface_async.py.
def __str__ | ( | self | ) |
Definition at line 119 of file interface_async.py.
def ack_pin | ( | self | ) |
get the ack pin of the interface as it is on the uC
Definition at line 176 of file interface_async.py.
def activate | ( | self, | |
req_pin, | |||
ack_pin, | |||
data_width, | |||
data_pins, | |||
mode = "4Phase_Chigh_Dhigh" , |
|||
req_delay = 0 , |
|||
time = 0 |
|||
) |
activate the interface on the uC with the given parameters
Mode: - "4Phase_Chigh_Dhigh" means 4 phase clock with high active clock and high active data - "4Phase_Clow_Dhigh" means 4 phase clock with low active clock and high active data - "2Phase" means 2 phase clock with high active data - "4Phase_MCP23017" means 4 phase clock with high active clock and high active data and MCP23017 port extender, pin IDs are not used in this mode @param req_pin: request pin id on the uC @param ack_pin: ack pin id on the uC @param data_width: data width of the interface @param data_pins: list of data pin ids on the uC @param mode: mode of the interface - "4Phase_Chigh_Dhigh", "4Phase_Clow_Dhigh", "2Phase", "4Phase_MCP23017" @param req_delay: how much the request of the handshake is delayed multiplied by 20us @param time: the exec_time when the uc should activate the interface, 0 means as soon as possible
Definition at line 317 of file interface_async.py.
def data_from_chip | ( | self | ) |
get the data recived from the chip will retun 2 lists: one with the word recoded and one with the time when it was recorded, linked by index
Definition at line 190 of file interface_async.py.
def data_from_chip_and_clear | ( | self | ) |
get the data recived from the chip and clear the buffer will retun 2 lists: one with the word recoded and one with the time when it was recorded, linked by index
Definition at line 212 of file interface_async.py.
def data_pins | ( | self | ) |
get the data pins of the interface as they are on the uC
Definition at line 155 of file interface_async.py.
def data_to_chip | ( | self | ) |
get the data send to the chip when they are actually send off by the uC data_to_chip will retun the data send by the uC to the device under test (DUT)
will retun 2 lists: one with the word send and one with the exact time when it was send, linked by index
the time might differ slightly from the time you sheduled the send word, as it is the time when it was send out and the uC can only send one word at a time
Definition at line 198 of file interface_async.py.
def data_to_chip_and_clear | ( | self | ) |
get the data send to the chip when they are actually send off by the uC and clear the buffer data_to_chip will retun the data send by the uC to the device under test (DUT)
will retun 2 lists: one with the word send and one with the exact time when it was send, linked by index
the time might differ slightly from the time you sheduled the send word, as it is the time when it was send out and the uC can only send one word at a time
Definition at line 225 of file interface_async.py.
def data_width | ( | self | ) |
get the data width of the interface as it is on the uC
Definition at line 162 of file interface_async.py.
def errors | ( | self | ) |
get the list of errors associated with this interface object
Definition at line 243 of file interface_async.py.
def header | ( | self | ) |
get the header this object is responcible for
Definition at line 134 of file interface_async.py.
def interface_type | ( | self | ) |
get the human readable type of the interface
Definition at line 148 of file interface_async.py.
def process_packet | ( | self, | |
packet | |||
) |
process a packet from the uC, update the status of the interface object and store the data
packet | packet object to be processed |
Definition at line 251 of file interface_async.py.
def req_delay | ( | self | ) |
get the request delay of the interface as it is on the uC
Definition at line 183 of file interface_async.py.
def req_pin | ( | self | ) |
get the request pin of the interface as it is on the uC
Definition at line 169 of file interface_async.py.
def send | ( | self, | |
word, | |||
time = 0 |
|||
) |
send a word to the chip
word | word to be send |
time | the exec_time when the uc should send the word, 0 means as soon as possible |
Definition at line 368 of file interface_async.py.
def status | ( | self | ) |
get the human readable status of the interface
Definition at line 140 of file interface_async.py.
def update | ( | self | ) |
Definition at line 381 of file interface_async.py.