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)
begin
`ifndef BUG
out <= out >> 1;
out[7] <= in;
`else
out <= out << 1;
out[7] <= in;
`endif
end
endmodule

View File

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