HDLBits - Module

2025. 1. 8. 19:34·HDLBits/Verilog

https://hdlbits.01xz.net/wiki/Module

Moudle 선언 방법으로 instance하는 문제!
그림처럼 mod_a가 이미 선언 되어있다고 가정하고 mod_a를 instance하면 된다.

나는 By Name 방식으로 불러서 쓰는 것이 좀더 명확하다고 생각해서 항상 그렇게 한다.

module top_module ( input a, input b, output out );
    mod_a U_mod_a ( .out(out), .in1(a), .in2(b) );
endmodule
저작자표시 비영리 변경금지 (새창열림)
'HDLBits/Verilog' 카테고리의 다른 글
  • HDLBits - GitHub 주소
  • HDLBits - Vector5
  • HDLBits - Vector4
  • HDLBits - Vectorr
Zi_Yoon
Zi_Yoon
머리 속에 정리하는 곳 <전자공학>
  • Zi_Yoon
    ZY_repo
    Zi_Yoon
  • 전체
    오늘
    어제
    • 분류 전체보기 (70)
      • HDLBits (25)
        • Verilog (19)
        • Circuits (4)
        • Verification (0)
      • IDEC 교육 (1)
        • Embedded C (13)
        • Verilog HDL (8)
      • Hardware (8)
        • RISC-V Project (1)
        • Computer Architecture (0)
        • AMBA (2)
        • FPGA (0)
        • 논문 읽기 (1)
        • ETC. (4)
      • 42서울 (13)
        • 리눅스 (12)
        • 네트워크 (1)
      • 생각 (1)
      • 취업 (1)
  • 블로그 메뉴

    • 홈
    • 태그
  • 링크

  • 공지사항

  • 인기 글

  • 태그

    pointer
    ARM
    보안 쉘
    비대칭 키
    centos
    lsblk
    Keil
    fpga
    AppArmor
    fucntion
    bit-wise and
    signal trap
    QUARTUS
    axi
    verilog
    vm
    ssh
    verilator
    AMBA
    APT
    embedded
    세션 키
    IDEC
    RISC-V
    research rabbit
    debian
    charater
    c
    hdlbits
    AXI4
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.1
Zi_Yoon
HDLBits - Module
상단으로

티스토리툴바