电子设计自动化交通灯设计实验报告.docxVIP

  • 14
  • 0
  • 约2.53千字
  • 约 8页
  • 2017-12-26 发布于河南
  • 举报

电子设计自动化交通灯设计实验报告.docx

电子设计自动化交通灯设计实验报告

EDA实验报告Laboratory Exercise 4 Traffic-light controller杨本栋学号:2014008001452014级电子一班2016年5月12日一、实验要求1.当复位时,学术路绿灯亮,文化路红灯亮。2.每5秒钟,传感器检测一次两条路是否有人。只要学术路有人,交通灯就不变化;当学术路没人时,亮5秒钟黄灯后变红灯,文化路变绿灯;当学术路有人时,文化路同样有5秒钟黄灯的转换过程;当两条路都没人时,学术路绿灯。二、源代码顶层实体——traffic_ledentity traffic_led isport(clk_all: in std_logic;rst_all: in std_logic;a,c: in std_logic;ag,ay,ar,cg,cy,cr: out std_logic);end entity;architecture bhv of traffic_led iscomponent traffic_ctrl isport (clk,rst,ta,tc: in std_logic; ga,gc,ra,rc,ya,yc : out std_logic);end component traffic_ctrl;component count_5s isport (clk,rst: in std_logic; cout : out std_log

文档评论(0)

1亿VIP精品文档

相关文档