资源简介
uvm_ref_flow_2013.05,cadence最新的UVMdemo
代码片段和文件信息
/*=======================================================================*/
/* Generate ROM from S-Format (4K byte) */
/*-----------------------------------------------------------------------*/
/* Rev.1 August 142002 by Thorn Aitch */
/* Rev.2 September 222002 by Thorn Aitch : Modify Verilog Descriptions */
/* Rev.3 October 072002 by Thorn Aitch : 4K byte version */
/* Rev.4 January 212003 by Thorn Aitch : 8K byte + RAM signals */
/* */
/*(1) Usage: */
/* genrom filename vfile datfile */
/* [filename] : (Input ) Binary File Name of Motolora S-Format. */
/* vfile : (Output) Verilog ROM description. */
/* datfile : (Output) ROM data file. */
/* */
/*(2) ROM Specification: */
/* 8192 byte (32bit x 2048word) : address = 00000000~00001FFF */
/*=======================================================================*/
#include
#include
#include
#include
#define ROMSIZE 32768 /* unit : byte */
#define MAXLINE 1000
#define MAXWORD 100
/*=============*/
/* main routine*/
/*=============*/
int main(int argc char *argv[])
{
FILE *memFp;
FILE *romvFp;
FILE *romdFp;
char memLine[MAXLINE];
char hex[MAXWORD];
char *pMemLine *pHex *SkipSpace();
int i errStx recType numCode;
unsigned long rom[ROMSIZE];
unsigned long addr;
unsigned long data;
if (argc != 5)
{
printf(“\n“);
printf(“====================================\n“);
printf(“==== Generate ROM from S-Format ====\n“);
printf(“====================================\n“);
printf(“[Command Usage]\n“);
printf(“ genrom filename vfile datfile\n“);
printf(“\n“);
printf(“ [filename] : (input ) Binary File Name of Motorola S-Format.\n“);
printf(“ vfile : (output) Verilog ROM description.\n“);
printf(“ datfile : (output) ROM data file for $readmemh.\n“);
printf(“ module_nm : verilog module name of the rom.\n“);
printf(“\n“);
printf(“[ROM Specification]\n“);
printf(“ -32768 byte (32bit x 8192word)\n“);
printf(“ -module rom(CLK CE WE SEL ADR DATI DATO);\n“);
printf(“ input CLK; : clock\n“);
printf(“ input CE; : chip enable\n“);
printf(“ input WE; : write enable (ignored)\n“);
printf(“ input [ 3:0] SEL; : byte lane (ignored)\n“);
printf(“ input [14:0] ADR; : address input\n“);
printf(“ input [31:0] DATI; : data input (ignored)\n“);
printf(“ output [31:0] DATO; : data output\n“);
printf(“ -
- 上一篇:基于中值滤波和小波变换的图像去噪研究
- 下一篇:系统辨识与建模资料大全
相关资源
- Statistical Learning Theory - Vapnik中文版
- VisualSVN-5.1.4 最新版 注册版 带破解
- VisualSVN-VS2019-7.0.0.rar
- svnwebclient-3.1
- 关于HOG+SVM的经典总结
- SVN安装与详细使用教程
- R语言分类(SVM KNN LDA等)与回归代码
- XP系统下的RSLogix5RSLogixRSView32授权授权
- 站库网韩剧TV视频类网站源码 完美自
- Gabor-SVM和PCA-SVM人脸识别程序
- KSVD稀疏表示字典训练程序
- 官方权威最小二乘支持向量机(LS-S
- VisualSVN Server 2.7.6
- svgdeveloper破解版
-
hog的xm
l与训练数据集 - 过完备字典
- ST直流无刷电机控制源码
- 绿盟PROD-ADS-V4.5-1600-1200-600-200系列用户
- 结构化数据文件转换工具(支持xls_
- 163枚Firemonkey矢量图标纯原生,非SVG或
- SVT数据集已标注
- excel的SVM模型工具
- U9 数据字典 Classview
- ilsvrc_2012_mean.npy
- SVM和HMM混合模型的研究及其应用
- SVM应用:药品胶囊识别与分类
- SVPWM的原理及法则推导和控制算法详解
- SVM研究的经典英文论文
- SVM_SteveGunn
- ADN4604ASVZ-RL
评论
共有 条评论