Clean verilog code from not used define block

This commit is contained in:
Miodrag Milanovic 2019-10-04 08:27:49 +02:00
parent d37cd267a5
commit 53bc499a90
2 changed files with 0 additions and 12 deletions

View File

@ -9,14 +9,8 @@ in
always @(posedge clk) always @(posedge clk)
begin begin
`ifndef BUG
out <= out >> 1; out <= out >> 1;
out[7] <= in; out[7] <= in;
`else
out <= out << 1;
out[7] <= in;
`endif
end end
endmodule endmodule

View File

@ -2,15 +2,9 @@ module tristate (en, i, o);
input en; input en;
input i; input i;
output reg o; output reg o;
`ifndef BUG
always @(en or i) always @(en or i)
o <= (en)? i : 1'bZ; o <= (en)? i : 1'bZ;
`else
always @(en or i)
o <= (en)? ~i : 1'bZ;
`endif
endmodule endmodule