Gates100

2023. 6. 20. 00:24FPGA/HDLBits

728x90

Problem Statement

Build a combinational circuit with 100 inputs, in[99:0].

There are 3 outputs:

  • out_and: output of a 100-input AND gate.
  • out_or: output of a 100-input OR gate.
  • out_xor: output of a 100-input XOR gate.
module top_module( 
    input [99:0] in,
    output out_and,
    output out_or,
    output out_xor 
);
    assign out_and = & in;
    assign out_or = | in;
    assign out_xor = ^ in;
endmodule

 

 

'FPGA > HDLBits' 카테고리의 다른 글

Popcount255  (0) 2023.06.20
Vector100r  (0) 2023.06.20
Bugs case  (0) 2023.06.20
Exams/ece241 2013 q7  (0) 2023.06.19
Exams/ece241 2014 q4  (0) 2023.06.19