1.8-3优先编码器Verilog testbench怎么写?
8-3优先编码器Verilog testbench怎么写?
`timescale 1ns/psmodule testbench;
reg [7:0] data_in ;
reg s ;
wire [2:0] data_out;
wire gs ;
wire es ;
encoder8_3_LS uut(
.s (s ),源码
.data_in (data_in ),
.gs (gs ),
.es (es ),
data_out(data_out)
);
initial
begin
data_in = 0;
s = 0;
#; data_in = 1;
#; data_in = 2;
#; data_in = 3;
#; data_in = 4;
#; data_in = 5;
#; data_in = 6;
#; data_in = 7;
#; s = 1;
#; data_in = 0;
#; data_in = 1;
#; data_in = 2;
#; data_in = 3;
#; data_in = 4;
#; data_in = 5;
#; data_in = 6;
#; data_in = 7;
#;
$finish;
end
endmodule
如果觉得回答的还行,请采纳答案,源码燕窝溯源码代理谢谢!源码打赏系统源码包天包月
源码国际物流订单查询系统源码源码国际物流订单查询系统源码qq农村源码_qq农场源码
excel 导入 php源码_php实现excel导入
erp系统java源码
rs485 源码
ideajavaweb项目源码_idea javaweb项目
android 4.1源码下载