I have the following code and I get an error. I am trying to use only one bit out of the four lines in the inputs A, B, and the output, Y. To be clear, I do not want to use the AND operator, I want to use the AND module that I made.
AND_Gate_Quad_SN74AHCT08N and0(.A({3'bzzz,clk_disable}), .B({3'bzzz,clk}), .Y({3'bzzz,clk_buffer}));
What would be a good way to accomplish this?
An output port cannot be connected to numeric literal constant.
There at least three options I can think of
.y(clk_buffer)
wire [3:0] clk_buffer
and only use clk_buffer[0]
..y({dummy_wire,clk_buffer})
.