Board logo

标题: Logic Test - Files structure (*.lst *.lgc) [打印本页]

作者: yovish    时间: 2021-3-10 06:09     标题: Logic Test - Files structure (*.lst *.lgc)

Can you describe the structure of the logicUser.lst file and *.lgc files?
作者: yovish    时间: 2021-3-10 22:42

What I have been able to analyze so far...

图片附件: Logic_lst.JPG (2021-3-10 22:42, 137.62 KB) / 下载次数 21381
http://forums.xgecu.com/attachment.php?aid=299&k=ca5032fbc442871d393b56989e2912fc&t=1773105720&sid=JhlXEH


作者: admin    时间: 2021-3-11 11:06

回复 2# yovish

#define LOGIC_UFILE_FLAG  0xABABABEE
#define MAX_LOGIC_ITEM  512


typedef struct LOGIC_ITEM_FILE_HEADTag
{

UINT AllCRC32;// all Items CRC32


UINT uiFlag;    //
LOGIC_UFILE_FLAG

UINT AllItemCnt;                 


UINT Res;


UINT ItemStartPos[MAX_LOGIC_ITEM];  //start postion in the file

}LOGIC_FILE_HEAD;


typedef struct LOGIC_ITEM_Tag
{

UINT Vector_Cnt;


char IcName[32];


BYTE VccVoltage; //0-3


BYTE AllPins;


BYTE Res0;


BYTE Res1;


UINT uiRes;

}LOGIC_ITEM;


typedef struct LOGIC_VECTOR_Tag
{

char _byte[24];

}LOGIC_VECTOR;
   
作者: yovish    时间: 2021-3-11 23:05

1. From which areas of the file is CRC32 counted?
2. Is the space between LOGIC_FILE_HEAD and LOGIC_ITEM reserved for the future?
3. Can the space between LOGIC_FILE_HEAD and LOGIC_ITEM have random content?
4. How exactly is CRC32 calculated?
作者: admin    时间: 2021-3-12 13:29

回复 4# yovish
CRC32 is all LOGIC_ITEM+LOGIC_VECTOR .The initial value is 0
作者: yovish    时间: 2021-3-13 05:47

Something is wrong with this CRC32 ...
In the "4052.lgc" file shown, the selected area is LOGIC_ITEM+LOGIC_VECTOR. The counted CRC32 is at the bottom and is different from that in the file?!?

图片附件: 4052_CRC.jpg (2021-3-13 05:47, 528.11 KB) / 下载次数 25931
http://forums.xgecu.com/attachment.php?aid=305&k=9e7547775dd80a76743f32ead9cae9d6&t=1773105720&sid=JhlXEH



附件: 4052.lgc (2021-3-13 05:49, 2.27 KB) / 下载次数 47427
http://forums.xgecu.com/attachment.php?aid=306&k=9cfd534460831d0dd0955b62c5e73133&t=1773105720&sid=JhlXEH
作者: yovish    时间: 2021-3-18 18:58

Please describe to me the CRC32 counting process in more detail. This will allow me to better use the potential of this programmer as a logic tester, because you do not want to add the additional functions I have proposed (import / export to text files, http://forums.xgecu.com/viewthread.php?tid=185&extra=page%3D1).
作者: firsthand    时间: 2024-1-8 09:04

I would also be interested in either more information about the format of the LST file, or a tool that allows you to IMPORT vectors.




欢迎光临 XGecu Programmer Forums (http://forums.xgecu.com/) Powered by Discuz! 7.2