Commit 6fd3dbda by Miodrag Milanovic

Fix for SF2

parent 13cc6608
module dff module dff
( input d, clk, output reg q ); ( input d, clk, output reg q );
initial begin
q = 0;
end
always @( posedge clk ) always @( posedge clk )
q <= d; q <= d;
endmodule endmodule
module dffe module dffe
( input d, clk, en, output reg q ); ( input d, clk, en, output reg q );
initial begin
q = 0;
end
always @( posedge clk) always @( posedge clk)
if ( en ) if ( en )
q <= d; q <= d;
...@@ -19,9 +13,6 @@ endmodule ...@@ -19,9 +13,6 @@ endmodule
module adff module adff
( input d, clk, clr, output reg q ); ( input d, clk, clr, output reg q );
initial begin
q = 0;
end
always @( posedge clk, posedge clr ) always @( posedge clk, posedge clr )
if ( clr ) if ( clr )
q <= 1'b0; q <= 1'b0;
......
module dff module dff
( input d, clk, output reg q ); ( input d, clk, output reg q );
initial begin
q = 0;
end
always @( posedge clk ) always @( posedge clk )
q <= d; q <= d;
endmodule endmodule
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment