T
TC2
Guest
I must be missing something simple but it looks to me like these two cases
should be the same (can you say De Morgan?):
if (hndshk_to_fpga | inc_ndx | rst_ndx) begin
//do nothing
end
else begin
hndshk_from_motor = 0;
end
if (~hndshk_to_fpga & ~inc_ndx & ~rst_ndx) begin
hndshk_from_motor = 0;
end
else begin
//do nothing
end
Signal hndshk_to_fpga is a 1-bit input. Signals inc_ndx and rst_ndx are
1-bit registers. Example 1 works, example 2 doesn't.
Thanks,
Tom
should be the same (can you say De Morgan?):
if (hndshk_to_fpga | inc_ndx | rst_ndx) begin
//do nothing
end
else begin
hndshk_from_motor = 0;
end
if (~hndshk_to_fpga & ~inc_ndx & ~rst_ndx) begin
hndshk_from_motor = 0;
end
else begin
//do nothing
end
Signal hndshk_to_fpga is a 1-bit input. Signals inc_ndx and rst_ndx are
1-bit registers. Example 1 works, example 2 doesn't.
Thanks,
Tom