控制模块(en_in,SW1,RST,RED1,RED2,yellow1,黄2,绿色快车,变绿再走)
module control(EN_in,SW1,RST,Red1,Red2,Yellow1,Yellow2,Green1,Green2)
output Red1
output Red2
output Yellow1
output Yellow2
output Green1
output Green2
input [1:0] EN_in
input SW1
input RST
reg Red1,Red2,Yellow1,Yellow2,Green1,Green2,D_out
always @(EN_in,RST,SW1)
begin
if(SW1==0||RST==0) {Red1,Red2,Yellow1,Yellow2,Green1,Green2}=6 b0
else
begin
case(EN_in)
2 b00 : {Red1,Red2,Yellow1,Yellow2,Green1,Green2}=6 b010010
2 b01 : {Red1,Red2,Yellow1,Yellow2,Green1,Green2}=6 b011000
2 b10 : {Red1,Red2,Yellow1,Yellow2,Green1,Green2}=6 b100001
2 b11 : {Red1,Red2,Yellow1,Yellow2,Green1,Green2}=6 b100100
default : {Red1,Red2,Yellow1,Yellow2,Green1,Green2}=6 b0
endcase
end
end
endmodule-module control(EN_in,SW1,RST,Red1,Red2,Yellow1,Yellow2,Green1,Green2)
output Red1
output Red2
output Yellow1
output Yellow2
output Green1
output Green2
input [1:0]
- 2023-06-20 16:15:04下载
- 积分:1
本程序所用压缩函数库在子目录zipfunc中,在zipfunc目录下,有两个子目录分别包含Release版和Debug版的zipfunc.lib,两者都是共享链...
本程序所用压缩函数库在子目录zipfunc中,在zipfunc目录下,有两个子目录分别包含Release版和Debug版的zipfunc.lib,两者都是共享链接库编译生成.同样,主程序的链接也必须用共享链接库设置.如要生成静态链接库程序,则必须重新编译zipfunc.lib,使之也生成静态链接库文件-procedures used by the compression functions in the subdirectory zipfunc, in zipfunc directory, there are two separate subdirectory contains Release version and the version of Debug zipfunc.lib, both are sharing link library compiler generation. Similarly, the main program must also link with shared libraries installed. To generate static chain access Accounting procedures, we must recompile zipfunc.lib, so it also generated static link libraries
- 2022-07-13 05:24:54下载
- 积分:1