Unverified Commit c5f1e079 by Miodrag Milanović Committed by GitHub

Merge pull request #28 from SergeyDegtyar/master

Fix failed tests for dffe cell
parents cd025088 f9f4d7b7
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk)
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk)
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk)
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk)
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk)
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk)
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -47,7 +47,7 @@ module dffe ...@@ -47,7 +47,7 @@ module dffe
initial begin initial begin
q = Z; q = Z;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -47,7 +47,7 @@ module dffe ...@@ -47,7 +47,7 @@ module dffe
initial begin initial begin
q = Z; q = Z;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 0; q = 0;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
...@@ -64,7 +64,7 @@ module testbench; ...@@ -64,7 +64,7 @@ module testbench;
else else
adffn <= dinA[0]; adffn <= dinA[0];
always @( posedge clk, posedge dinA[2] ) always @( posedge clk )
if ( dinA[2] ) if ( dinA[2] )
dffe <= dinA[0]; dffe <= dinA[0];
......
...@@ -35,7 +35,7 @@ module dffe ...@@ -35,7 +35,7 @@ module dffe
initial begin initial begin
q = 1'bZ; q = 1'bZ;
end end
always @( posedge clk, posedge en ) always @( posedge clk )
if ( en ) if ( en )
`ifndef BUG `ifndef BUG
q <= d; q <= d;
......
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