Dlloydev / Wokwi-Chip-1-of-8-Decoder

This chip provides eight mutually exclusive outputs. The Select range control enables and sets the active-high output.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wokwi-Chip-1-of-8-Decoder

Description

This chip provides eight mutually exclusive outputs. The Select range control enables and sets the active-high output.

image

Select D8 D7 D6 D5 D4 D3 D2 D1
0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 1
2 0 0 0 0 0 0 1 0
3 0 0 0 0 0 1 0 0
4 0 0 0 0 1 0 0 0
5 0 0 0 1 0 0 0 0
6 0 0 1 0 0 0 0 0
7 0 1 0 0 0 0 0 0
8 1 0 0 0 0 0 0 0

Usage

To use this chip in your project, include it as a dependency in your diagram.json file:

  "dependencies": {
    "chip-1-of-8-decoder": "github:Dlloydev/Wokwi-Chip-1-of-8-Decoder@1.0.1"
  }

Then, add the chip to your circuit by adding a chip-1-of-8-decoder item to the parts section of diagram.json:

  "parts": {
    ...,
    { "type": "chip-1-of-8-decoder", "id": "chip-1-of-8-decoder1" }
  },

The actual source code for the chip lives in src/main.c, and the pins are described in chip.json.

Example

Wokwi_badge 1 of 8 Decoder Example

License

This project is licensed under the MIT license. See the LICENSE file for more details.

About

This chip provides eight mutually exclusive outputs. The Select range control enables and sets the active-high output.

License:MIT License


Languages

Language:C 100.0%