HDLBits - 7458 chip

2024. 12. 6. 01:49·HDLBits/Verilog

7458 chip 내부의 회로를 구현 하라는 문제

그림을 잘보고 하나하나 만들어가면 크게 어렵지않다.

좌측은 and gate들이 입력 2개를 받고 우측은 and gate들이 입력 3개를 받는 것만 유의해서 짜면 될것같다.

 

이로써 Verilog-Language의 Basics 챕터가 끝났다~

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

module top_module ( 
    input p1a, p1b, p1c, p1d, p1e, p1f,
    output p1y,
    input p2a, p2b, p2c, p2d,
    output p2y
);

    wire w_and_1, w_and_2;
    wire w_tri_and_1, w_tri_and_2;
    wire w_or_1, w_or_2;

    assign w_and_1 = p2a & p2b;
    assign w_and_2 = p2c & p2d;
    assign w_or_1 = w_and_1 | w_and_2;
    assign p2y = w_or_1;

    assign w_tri_and_1 = p1a & p1b & p1c;
    assign w_tri_and_2 = p1d & p1e & p1f;
    assign w_or_2 = w_tri_and_1 | w_tri_and_2;
    assign p1y = w_or_2;

endmodule
저작자표시 비영리 변경금지 (새창열림)
'HDLBits/Verilog' 카테고리의 다른 글
  • HDLBits - Vector1
  • HDLBits - Vectors
  • HDLBits - Declaring wires
  • HDLBits - AND gate / NOR gate / XNOR gate
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)
  • 블로그 메뉴

    • 홈
    • 태그
  • 링크

  • 공지사항

  • 인기 글

  • 태그

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

  • 최근 글

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

티스토리툴바