TrigInt2Mux.v 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. `timescale 1ns / 1ps
  2. //////////////////////////////////////////////////////////////////////////////////
  3. // Company:
  4. // Engineer:
  5. //
  6. // Create Date: 10:02:35 04/20/2020
  7. // Design Name:
  8. // Module Name: mult_module
  9. // Project Name:
  10. // Target Devices:
  11. // Tool versions:
  12. // Description:
  13. //
  14. // Dependencies:
  15. //
  16. // Revision:
  17. // Revision 0.01 - File Created
  18. // Additional Comments:
  19. //
  20. //////////////////////////////////////////////////////////////////////////////////
  21. module TrigInt2Mux
  22. #(
  23. parameter PGenNum = 7
  24. )
  25. (
  26. input Rst_i,
  27. input [3:0] MuxCtrl_i,
  28. input [PGenNum-1:0] PulseBus_i,
  29. output MuxOut_o
  30. );
  31. //================================================================================
  32. // LOCALPARAM
  33. //================================================================================
  34. // REG/WIRE
  35. reg muxOut;
  36. //================================================================================
  37. // ASSIGNMENTS
  38. assign MuxOut_o = muxOut;
  39. //================================================================================
  40. // CODING
  41. always @(*) begin
  42. if (!Rst_i) begin
  43. muxOut = PulseBus_i[MuxCtrl_i];
  44. end else begin
  45. muxOut = 1'b0;
  46. end
  47. end
  48. endmodule