标签:set ssi verilog 控制 ips module day log homepage
module pcreg( input clk, input rst, input ena, input [31:0] data_in, output [31:0] data_out ); reg [31:0] data=32‘b0; always @(posedge clk or posedge rst) begin if(rst) data<=32‘h00400000; //reset key else begin if(ena) data<=data_in; //enable ,input end end assign data_out = data; endmodule
标签:set ssi verilog 控制 ips module day log homepage
原文地址:http://www.cnblogs.com/liutianchen/p/7616749.html