上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 35 下一页
摘要: 唔,这个折腾了半天。。。今天学到的两个函数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 阅读(12606) 评论(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 阅读(2291) 评论(0) 推荐(1)
摘要: notdir,wildcard和patsubst是makefile中几个有用的函数,以前没留意过makefile中函数的用法,今天稍微看看~ 1、makefile里的函数 makefile里的函数使用,和取变量的值类似,是以一个‘$’开始,然后是一个括号里面是函数名和需要的参数列表,多个变量用逗号隔 阅读全文
posted @ 2012-11-02 16:27 Biiigfish 阅读(38818) 评论(1) 推荐(1)
摘要: Recommended reading order:lmathlib.c, lstrlib.c: get familiar with the external C API. Don't bother with the pattern matcher though. Just the easy functions.lapi.c: Check how the API is implemented internally. Only skim this to get a feeling for the code. Cross-reference to lua.h and luaconf.h a 阅读全文
posted @ 2012-10-27 11:45 Biiigfish 阅读(365) 评论(0) 推荐(0)
摘要: ALSA IntroductionThe Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system. ALSA has the following significant features:Efficient support for all types of audio interfaces, from consumer sound cards to professional multichannel audio interfaces. 阅读全文
posted @ 2012-10-27 10:59 Biiigfish 阅读(5236) 评论(0) 推荐(0)
摘要: 反反复复学lua N多次了,这次终于在C中调用lua成功了!一大进步啊!记录下过程:1、找到代码如下://add.c#include<stdio.h>#include"lua.h"#include"lualib.h"#include"lauxlib.h"/*theluainterpreter*/lua_State*L;intluaadd(intx,inty){intsum;/*thefunctionname*/lua_getglobal(L,"add");/*thefirstargument*/lua_ 阅读全文
posted @ 2012-10-26 17:51 Biiigfish 阅读(26771) 评论(5) 推荐(0)
摘要: 【转载请注明出处】模拟信号格式Wiki这样描述:“The color video signal is a linear combination of the luminance of the picture, and a modulated subcarrier carries the chrominance or color information, a combination of hue and saturation。”。也就是说,所谓的彩色模拟电视,实际上是有黑白画面再经过“着色”来实现的(chrominance是色度信息,简称C;luminance是亮度信息,简称Y)。其中的颜色又是 阅读全文
posted @ 2012-10-17 17:19 Biiigfish 阅读(2813) 评论(0) 推荐(0)
摘要: 首先讲讲这么东西是干嘛的。它的英文名叫Backus–Naur Form,简写做BNF,是用发明这种格式的两位开发者的名字所命名。RFC2234 定义了扩展的巴科斯范式(ABNF,argumented BNF)。近年来在Internet的定义中ABNF被广泛使用。ABNF做了更多的改进,比如说,在AB... 阅读全文
posted @ 2012-10-15 19:25 Biiigfish 阅读(374) 评论(0) 推荐(0)
摘要: 发布:这个有一两年了,今天整理草稿箱又翻出来。有些地方有偏颇,但是不准备修改了。阅读小心被误导。尤其最后,事实上,每个人只要自己业务熟练,能力不弱,都会创造不小价值,回报也不会差。====现代商业活动中,每个人都是一个信息管理单元。技术人员搜集生产设计信息,并将它们合理组装成产品;销售人员搜集市场信息,并将它们加工成需求信息和订单;人事部门了解公司员工的状况,制定合理的人事建议给高层;采购部门则是汇集供应商信息,价格信息,来制定合理的采购方案。高层管理人员,则是将这些信息进行汇集加工。(上面的分析漏掉了财务,目前对财务还一无所知)信息的重要性往往依其获取的难易程度来划分。事实上,实际的商业活动 阅读全文
posted @ 2012-09-26 13:43 Biiigfish 阅读(623) 评论(0) 推荐(0)
摘要: 光调制度,或叫做光调制指数(OMI,optical modulation index),光调制深度(OMD,optical modulation depth)。与电信号上用到的调制度(modulation depth)概念类似。定义有:M=Delta Input Current(Ip-p)/(Bias Current(Ibias)-Ith 阅读全文
posted @ 2012-09-26 13:39 Biiigfish 阅读(2110) 评论(0) 推荐(0)
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 35 下一页