verilog39 _xnor module _xnor#( parameter INPUT_WIDTH = 1 )( output outputData, input [INPUT_WIDTH-1:0] inputData ); tri outputData; tri [INPUT_WIDTH-1:0] inputData; tri [INPUT_WIDTH:0] Temp; assign Temp[0]=1'b1; genvar Index; generate for(Index=0; Index 2023. 11. 24. xnor_B_to_A module xnor_B_to_A( output outputData, input A, input B ); tri TempNor; tri TempAnd; _nor #(.INPUT_WIDTH(2)) GetNor(TempNor,{B,A}); _and #(.INPUT_WIDTH(2)) GetAnd(TempAnd,{B,A}); _or #(.INPUT_WIDTH(2)) GetXNor(outputData, {TempAnd,TempNor}); endmodule 2023. 11. 24. _xor module _xor#( parameter INPUT_WIDTH = 1 )( output outputData, input [INPUT_WIDTH-1:0] inputData ); tri outputData; tri [INPUT_WIDTH-1:0] inputData; tri [INPUT_WIDTH:0] Temp; assign Temp[0]=1'b0; genvar Index; generate for(Index=0; Index 2023. 11. 24. xor_B_to_A module xor_B_to_A( output outputData, input A, input B ); tri TempNor; tri TempAnd; _nor #(.INPUT_WIDTH(2)) GetNor(TempNor,{B,A}); _and #(.INPUT_WIDTH(2)) GetAnd(TempAnd,{B,A}); _nor #(.INPUT_WIDTH(2)) GetXor(outputData, {TempNor,TempAnd}); endmodule 2023. 11. 22. 이전 1 ··· 3 4 5 6 7 8 9 10 다음