Commit a965148e by SergeyDegtyar

Clean up of tests.

parent 7ec04bdd
...@@ -7,11 +7,7 @@ module mcve(i_clk, i_value, o_value); ...@@ -7,11 +7,7 @@ module mcve(i_clk, i_value, o_value);
always @(posedge i_clk) always @(posedge i_clk)
case(i_value) case(i_value)
2'b00: begin end 2'b00: begin end
`ifndef BUG
2'b01: o_value <= 4'h2; 2'b01: o_value <= 4'h2;
`else
2'b01: o_value <= 4'h3;
`endif
2'b10: o_value <= 4'h4; 2'b10: o_value <= 4'h4;
2'b11: o_value <= 4'h8; 2'b11: o_value <= 4'h8;
default: o_value <= 4'h1; default: o_value <= 4'h1;
...@@ -21,11 +17,7 @@ module mcve(i_clk, i_value, o_value); ...@@ -21,11 +17,7 @@ module mcve(i_clk, i_value, o_value);
case(o_value) case(o_value)
4'h0: begin end 4'h0: begin end
4'h1: assert(o_value == 4'h1); 4'h1: assert(o_value == 4'h1);
`ifndef BUG
4'h2: assert(o_value == 4'h2); 4'h2: assert(o_value == 4'h2);
`else
4'h2: assert(o_value == 4'h3);
`endif
4'h4: assert(o_value == 4'h4); 4'h4: assert(o_value == 4'h4);
4'h8: assert(o_value == 4'h8); 4'h8: assert(o_value == 4'h8);
default: assert(0); default: assert(0);
......
...@@ -16,11 +16,7 @@ module top ...@@ -16,11 +16,7 @@ module top
// Port A // Port A
always @ (posedge clka) always @ (posedge clka)
begin begin
`ifndef BUG
if (we_a) if (we_a)
`else
if (we_b)
`endif
begin begin
ram[addr_a] <= data_a; ram[addr_a] <= data_a;
q_a <= data_a; q_a <= data_a;
...@@ -34,11 +30,7 @@ module top ...@@ -34,11 +30,7 @@ module top
// Port B // Port B
always @ (posedge clkb) always @ (posedge clkb)
begin begin
`ifndef BUG
if (we_b) if (we_b)
`else
if (we_a)
`endif
begin begin
ram[addr_b] <= data_b; ram[addr_b] <= data_b;
q_b <= data_b; q_b <= data_b;
......
...@@ -16,11 +16,7 @@ module top ...@@ -16,11 +16,7 @@ module top
// Port A // Port A
always @ (posedge clka) always @ (posedge clka)
begin begin
`ifndef BUG
if (we_a) if (we_a)
`else
if (we_b)
`endif
begin begin
ram[addr_a] <= data_a; ram[addr_a] <= data_a;
q_a <= data_a; q_a <= data_a;
...@@ -34,11 +30,7 @@ module top ...@@ -34,11 +30,7 @@ module top
// Port B // Port B
always @ (posedge clkb) always @ (posedge clkb)
begin begin
`ifndef BUG
if (we_b) if (we_b)
`else
if (we_a)
`endif
begin begin
ram[addr_b] <= data_b; ram[addr_b] <= data_b;
q_b <= data_b; q_b <= data_b;
......
...@@ -10,7 +10,6 @@ module top ...@@ -10,7 +10,6 @@ module top
parameter X = 1; parameter X = 1;
wire o; wire o;
`ifndef BUG
always @(posedge cin) always @(posedge cin)
A <= o; A <= o;
...@@ -18,9 +17,6 @@ always @(posedge cin) ...@@ -18,9 +17,6 @@ always @(posedge cin)
middle u_mid (.x(x),.o(o)); middle u_mid (.x(x),.o(o));
u_rtl inst_u_rtl (.x(x),.o(o)); u_rtl inst_u_rtl (.x(x),.o(o));
`else
assign {cout,A} = cin - y * x;
`endif
endmodule endmodule
......
...@@ -8,10 +8,6 @@ module top ...@@ -8,10 +8,6 @@ module top
output cout output cout
); );
`ifndef BUG
assign {cout,A} = cin + y + x; assign {cout,A} = cin + y + x;
`else
assign {cout,A} = cin - y * x;
`endif
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