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) / 下载次数 5808
http://forums.xgecu.com/attachment.php?aid=299&k=f8c9c197ed8cf899d5bd564c48154054&t=1713864083&sid=kMTMk9


作者: 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) / 下载次数 6768
http://forums.xgecu.com/attachment.php?aid=305&k=cacada11b7251782a45d5fd70f90ceb5&t=1713864083&sid=kMTMk9



附件: 4052.lgc (2021-3-13 05:49, 2.27 KB) / 下载次数 16141
http://forums.xgecu.com/attachment.php?aid=306&k=9fbe14c03a4c4e57f12ea627337943f1&t=1713864083&sid=kMTMk9
作者: 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