摘要: 唔,这个折腾了半天。。。今天学到的两个函数string.sub和string.format。string.sub(s,i,j),将s的第i个到第j个字符取出,i缺省为1,j缺省为-1string.format(),唔,完全可以当作是C里面的printf来用!今天写的一个小程序:#!/usr/bin/envluahere=0forlineinio.lines("./sin512.mif")dohere=here+1ifhere<7thenprint(line)elseif(here-7)%8==0thenline=string.sub(line,5)print(stri 阅读全文
posted @ 2012-11-04 22:08 Biiigfish 阅读(12490) 评论(0) 推荐(0) 编辑
摘要: 1、TCL与Pin PlanQuartus的pin map在Assigment-> Pin Planer,使用比较直观。Quartus提供了一个方便记录-专递Pin Map的方式-TCL文件。TCL文件基本格式:1)#号作为注释的开始2)set_location_assignment PIN_27 -to RESET,表示PIN27被map到硬件Reset3)set_global_assignment -name RESERVE_ALL_UNUSED_PINS "AS INPUT TRI-STATED" ,表示把所有未使用的硬件映射为Input Tri-stated。 阅读全文
posted @ 2012-11-04 10:15 Biiigfish 阅读(2267) 评论(0) 推荐(1) 编辑