Board logo

标题: 可综合的verilog语法子集(3) [打印本页]

作者: yuyang911220    时间: 2015-8-26 09:51     标题: 可综合的verilog语法子集(3)

下面逻辑呢?

module dff_sys(I_clock, I_data, O_data);

input I_clock, I_data;

output O_data;

reg R_b, R_c, R_d;

assign O_data = R_d;

always @(posedge I_clock)

begin

R_b = I_data;

R_c = R_b;

R_d <= R_c;

end

endmodule


module dff_sys(I_clock, I_data, O_data);

input I_clock, I_data;

output O_data;

reg R_b, R_c, R_d;

assign O_data = R_d;

always @(posedge I_clock)

begin

R_b <= I_data;

R_c <= R_b;

R_d <= R_c;

end

endmodule




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0