当前位置:网站首页>MIF file format record

MIF file format record

2022-07-07 11:15:00 Lime Miya

As shown below :

DEPTH=32;			--Thesizeofdatainbits 
WIDTH=8;			--Thesizeofmemoryinwords 
ADDRESS_RADIX=HEX;	--Theradixforaddressvalues 
DATA_RADIX=BIN;		--Theradixfordatavalues 
CONTENT				--start of (address:datapairs)
BEGIN 
00:00000000;--memoryaddress:data
01:00000001; 
02:00000010; 
03:00000011; 
04:00000100; 
05:00000101; 
06:00000110; 
07:00000111; 
08:00001000; 
09:00001001; 
0A:00001010; 
0B:00001011; 
0C:00001100; 
END; 
 You can see MIF The document is divided into two parts , The other part is format description :
	DEPTH Is the address depth ,
 	WIDTH Word width ,
 	ADDRESS_RADIX and  DATA_RADIX Usually use  UNS, That is, unsigned decimal number ;
 	HEX,Hexadecimal , Hexadecimal .
	DEC,Decimal , Decimal system .
	OCT,Octal , octal .
	BIN,Binary , Binary system .
  The other part is  begin And end In the middle of the "00:00000000;" Is the one-to-one address and data .  
 therefore , In order to get MIF file , Only need to begin And end Replace the middle paragraph with what you need .
原网站

版权声明
本文为[Lime Miya]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/188/202207070901471704.html