HDLBits – Module name

This problem is similar to module. You are given a module named mod_a that has 2 outputs and 4 inputs, in some order. You must connect the 6 ports by name to your top-level module’s ports: See the HDLBits page for a diagram and table.


Ah, now we get to connect ports by name. My world makes sense again after the last exercise, but my skin is still crawling:

module top_module (
  input  logic a, b, c, d,
  output logic out1, out2 );
  // Connect ports by name
  mod_a mod_a_i (
    .out2(out2) );
endmodule : top_module

Leave a Reply

Your email address will not be published. Required fields are marked *