设计与验证verilog hdl

源代码在线查看: decode.v

软件大小: 1828 K
上传用户: NJ_WK
关键词: verilog hdl
下载地址: 免注册下载 普通下载 VIP

相关代码

				module decode (clock, reset, data_bus_in, addr_bus, data_bus_out);
				
				input       clock, reset;
				input  [7:0] data_bus_in;
				input  [7:0] addr_bus;
				
				output [7:0] data_bus_out;
				
				reg    [7:0] data_bus_out;
				
				always @ (posedge clock or posedge reset)
				      if (reset)
				         data_bus_out 				      else
				         case (addr_bus)
				          8'b 11110000: data_bus_out 				          8'b 00001111: data_bus_out 				          8'b 10100000: data_bus_out 				          default:      data_bus_out 						 endcase
				                 
				endmodule
							

相关资源