摘要: LM3S的GPIO操作相关库函数 1 1.内核时钟设置 2 SysCtlClockSet 3 2.片上设备时钟使能 4 SysCtlPeripheralEnable 5 3.GPIO设置 6 GPIODirModeSet/Get // Param3:1.输入(数字、模拟) 2.输出(数字) 3.硬件决定(数字第二功能) 7 GPIOPadConfigSet/Get // Param2:1.驱动强度(数字、模拟) 8 // Param3:1.推挽/开... 阅读全文
posted @ 2012-03-30 16:46 fishplj2000 阅读(3113) 评论(0) 推荐(0) 编辑
摘要: SRAM_IS61LV25616的仿真模型(原厂模型基础上增加了读写记录文件功能) 1 // IS61LV25616 Asynchronous SRAM, 256K x 16 = 4M; speed: 10ns. 2 // Note; 1) Please include "+define+ OEb" in running script if you want to check 3 // timing in the case of OE_ being set. 4 // 2) Please specify access time by defining tA... 阅读全文
posted @ 2012-03-30 11:40 fishplj2000 阅读(742) 评论(0) 推荐(0) 编辑
摘要: Verilog语法中需注意的细节点 1 1. integer 整型 须在 initial语句、always语句 外定义,Verilog区分大小写,关键字都是小写; 2 2. parameter 须在 module内部定义,局部常量; 3 3. define 可在任何地方定义(一般在module外部),全局常量。 4 4. $monitor 只要参数变化就触发。必须放在 initial块 内部。 5 5. case的用法: 6 case(sel) 7 2'b00: out=in0; 8 2'b01: out=in1; 9 2'b10: out=in2;10 2'b 阅读全文
posted @ 2012-03-30 10:42 fishplj2000 阅读(781) 评论(0) 推荐(0) 编辑
摘要: MCU总线 读写仿真模块 1 `timescale 1ns/1ns 2 3 module MCU_RW 4 ( 5 mcu_cs_n , 6 mcu_wr_n , //下降沿触发写 7 mcu_rd_n , //下降沿触发读 8 mcu_addr , 9 mcu_data 10 11 );12 parameter DATAWIDTH = 16;13 ... 阅读全文
posted @ 2012-03-30 10:12 fishplj2000 阅读(416) 评论(0) 推荐(0) 编辑