eda课程设计-gsm通讯机的vhdl设计及仿真(编辑修改稿)内容摘要:
ype rece_state is(R0,R1,R2)。 begin send:process(CLK_UART) variable samp: integer range 0 to 16:=0。 variable temp: std_logic_vector(7 downto 0)。 variable t: integer range 0 to 8:=0。 variable sp_state:send_state。 begin if (CLK_UART39。 event and CLK_UART=39。 139。 ) then case sp_state is when S1 = txd=39。 139。 samp:=0。 if SEND_MARK=39。 139。 then sp_state:=S2。 else sp_state:=S1。 end if。 when S2 = temp:=DATA_IN。 txd=39。 039。 samp:=samp+1。 if samp=16 then samp:=0。 t:=0。 sp_state:=S3。 else sp_state:=S2。 end if。 when S3 = txd=temp(0)。 samp:=samp+1。 if samp=16 then samp:=0。 temp:=39。 039。 amp。 temp(7 downto 1)。 t:=t+1。 沈 阳 大 学 课程设计说明书 if t=8 then sp_state:=S4。 else sp_state:=S3。 end if。 end if。 when S4 = txd=39。 139。 samp:=samp+1。 if samp=15 then samp:=0。 sp_state:=S1。 end if。 when others= sp_state:=S1。 end case。 end if。 end process send。 receive:process(CLK_UART) variable rp_state:rece_state。 variable reg: std_logic_vector(7 downto 0)。 variable t: integer range 0 to 16。 variable count: integer range 0 to 8。 begin if CLK_UART39。 event and CLK_UART=39。 139。 then case rp_state is when R0= RECE_MARK=39。 039。 reg:=(others=39。 039。 )。 if RXD=39。 039。 then t:=t+1。 if t=8 then rp_state:=R1。 end if。 else t:=0。 end if。 when R1= t:=t+1。 if t=16 then t:=0。 end if。 if t=8 then reg:=RXDamp。 reg(7 downto 1)。 沈 阳 大 学 课程设计说明书 count:=count+1。 if count=8 then count:=0。 t:=0。 rp_state:=R2。 end if。 end if。 when R2= DATA_OUT=reg(7 downto 0)。 RECE_MARK=39。 139。 t:=t+1。 if t=16 then t:=0。 rp_state:=R0。 end if。 when others= rp_state:=R0。 end case。 end if。 end process receive。 end architecture。 将以上程序写入 MAX+pluwe2 中进行编译仿真,可得如下结果。 图 6 uart_withoutParity 元件图 沈 阳 大 学 课程设计说明书 图 7 对 uart_withoutParity 程序仿真图 模块 4VGA接口 VGA 模块由 3 个子模块组成,分别是 CONTENT、 VGA、 VGA_DIV, 其中VGA_DIV 模块将显示器分割成 20*15 个小块 , VGA 模块输出信号至显示器 ,CONTENT 模块包含了所要显示的内容,还包括了键盘按键的判断 、 UART 的缓存数据,还是整个系统主要的状 态控制器。 将这 3个模块用 ponent语句进行例化,生成 VGA_interface 模块,再在顶层的 Block Diagram 文件进行调用,减少了顶层文件连线的复杂性。 VGA的 VHDL 源代码如下: library ieee。 use。 entity VGA is port( CLK_VGA:in std_logic。 HS,VS:out std_logic。 RGB:out std_logic_vector (2 downto 0)。 RGB_DATA:in std_logic_vector (2 downto 0)。 RGB_H:inout std_logic。 RGB_V:inout std_logic)。 end entity。 architecture VGA_DIS of VGA is signal h_t:integer range 0 to 800 :=0。 sig。eda课程设计-gsm通讯机的vhdl设计及仿真(编辑修改稿)
相关推荐
0)NoTrigger int Trigger_Position_Temp=0,j=0。 uchar key。 //keyValue uchar i,temp。 uchar idata PageFull。 //Page being displayed. (_NO) bit enter=0。 bit sent=0。 //send done bit send_ok=0。 //send_ok bit
它 的 出 现 和 发 展 使 电 子 系 统 设 计 师 借 助 于 CAD手 段 在 实 验 室 里 就 可 以 设 计 自 己 的 ASIC 器 件。 特 别 是 FPGA( Field Programmable Gate Array) 的 产 生 与 发 展 , 使 其 成 为 继 微 处 理 器 、 存 储 器 之 后 的 为 电 子 数 字 系 统 设 计 而 确 定 的又 一 种
ol End Sub 则点查询、圆查询、矩查询、区查询编辑完成 “ Map”和“ ListBox”添加 Map1和 List1 再用“查看代码”输入: Private Sub Map1_ToolUsed(ByVal ToolNum As Integer, ByVal x1 As Double, ByVal y1 As Double, ByVal x2 As Double, ByVal y2 As
合进行竞争对手产品和综合竞争优 势分析。 商机通过于具体部门和销售人员关联,结合对于地销售指标、商机汇总、商机进程可将项目纳入销售漏斗管理,进行销售趋势分析与控制,同时还可以辅助进行销售业绩预测。 伴随着商机的推进,用户可以根据实际情况关闭商机,商机关闭有成功、失败关闭二种类型,无论是成功还是失败关闭,用户都必须选择成败原因,供商机统计分析。 系统还提供设置,随合同的成功签约
厂商规模占行业规模的比重(销售额、资产、人员) 行业业务模式分析(资本集中度、利润来源、进入 /推出壁垒) 1. 行业企业资产主要存在形式(固定资产。 人力资源。 流动资金。 技术产权。 ) 2. 经营成本、费用主要发生形式(人力。 关键原材料。 ) 3. 经营固定成本 /可变成本结构 4. 行业利润来源(产品流动差价。 技术产品销售。 使用权转让。 ) 5. 行业进入 /退
80、以下程序段输出结果是 ( ) A、 15 B、 14 C、不确定 D、 0 main() { int i, sum。 for(i=1。 i6。 i++) sum+=sum。 printf(“ %d\n” ,sum)。 } 8以下程序的输出结果是 ( ) A、 741 B、 852 C、 963 D、 875421 main() { int y=10。 for(。 y0。 y)