Questions tagged [circuit]

In a programming context, a circuit usually refers to a combination of logical operators to achieve a desired response. Use this tag to ask about basic logical implementations and loops you can't get your head around.

In a programming context, a circuit usually refers to a combination of logical operators to achieve a desired response. This could be implemented in hardware (see: electronic/electrical engineering) but in software the key issue is the logic.

Use this tag to ask about basic logical implementations and loops you can't get your head around.

Logical operators include AND, OR, NOT, NAND and NOR gates, and judicious combinations of these can be used to construct just about any possible structures.

303 questions
-1
votes
1 answer

Build a circuit to test if two inputs are equal

So I'm doing a question that reads as follows Build a circuit using the abstract syntax for Prop to test if two inputs are equal. Justify that your circuit is correct. This is the Prop in question. data Prop = FALSE | TRUE | IN String | NOT Prop…
Legion Daeth
  • 329
  • 1
  • 5
  • 15
-1
votes
1 answer

Truth tables, boolean expressions and circuits

I have created my truth table and drawn from this a boolean expression (f = B'A' + CA' + DC' + DB + D'CB') which I have then attempted to convert into a circuit using Quartus. I am new to digital logic and I need some help from someone wit…
-1
votes
1 answer

Designing a circuit that calculates Hamming distance?

I came across this question and I couldn't find it in textbooks or the internet. Seems pretty unique. I guess there would be some comparators and adders involved, but I have no clue where to start.
-1
votes
1 answer

Model checking synchronous circuit in UPPAAL

I am using UPPAAL model checker to model synchronous circuit at the gate level, I have some confusion on how I can model the clock, my goal is to verify that set-up time and hold time are not violated. I found some models giving the clock as a test…
-1
votes
2 answers

How to handle and event from pushing a physical button?

Hello I am creating an application on vb.net which I want to launch an event whenever someone rings the doorbell. Can someone show me where I need to start looking? I know I need a circuit, but it should be very simple since I only want to push a…
Haz
  • 203
  • 6
  • 15
-1
votes
1 answer

Area optimization for a custom library using Synopsys Design Vision

I write a custom library for synopsys design vision which only consists of XOR, NOR, and IV (inverter or NOT). My plan is to synthesize a combinational logic such that the resulting netlist has minimum number of NOR gates. I write the library as…
ebi
  • 501
  • 3
  • 12
-1
votes
1 answer

Dealing with logic gates, how do I build a circuit from k-map equations?

My partner walked off with the sheet so I can't provide you with the table but I have the 6 supposed equations. I need to build a 3-bit up-counter with JK flip-flops. Following are the equations: J(Q1) = ~Q1 * Q0 K(Q1) = Q1 * Q0 J(Q2) = Q2 *…
Milan Novaković
  • 331
  • 8
  • 16
-1
votes
1 answer

Logisim 7 segment display

I am trying to create a circuit in Logisim that can count upwards using the 7-segment display as the output. It needs to run using a clock, and automatically count from 0 to 9 and then back to 0 again, in a continuous loop. I don't know where to…
user2988960
  • 39
  • 1
  • 3
-1
votes
1 answer

How to draw a circuit diagram to check a 4 bits number is odd or even

Like the title, anyone know how to draw a circuit diagram to check a 4 bits number odd or even ??
Raku Ichijo
  • 1
  • 1
  • 3
-2
votes
1 answer

Arduino, Run Time Code Error in Debouncing Voltage Time Delay Code

I am Ansh Goel, I was learning Arduino from Udemy. I am beginner to this field. I was creating a code for Debouncing the button to solve the issues of bouncing voltage. But there is error in the code. There is no Compile time error but it is run…
Goel Ansh
  • 1
  • 7
-2
votes
1 answer

multiplier component

I am trying to build a top-level component of 4x4 multiplier in VHDL and I have some trouble understanding a few things. I am trying to write VHDL code to represent the following component below: Circuit figure for the implementation of VHDL Code I…
MIJ
  • 1
  • 2
-2
votes
3 answers

Java: filling a 2D array to find Power of a circuit

Hi I am trying to write a code for an assignment where you have a constant resistance and increasing current, then calculate power. I wanted to put all the data into an array just to make it neat and simple. But I am struggling to fill it, I have no…
JVinitsky
  • 1
  • 1
-2
votes
1 answer

How does the performance relate to the voltage in digital electronics?

I am studying some techniques to reduce power in digital circuits, and one way was to reduce the applied voltage but the trade off is the delay of the circuit will increase, I would appreciate if someone could explain how the delay is related to the…
-2
votes
1 answer

How can I activate or deactivate my own microphone in a conference in circuit?

How can I activate or deactivate my own microphone in a conference? we used this: client.muteDevice(call.callId, null, {mic: true, speaker: true}) but give error
-2
votes
2 answers

finding a boolean circuit with AND, OR and NOT gates only

I am trying to find a Boolean circuit with AND, OR and NOT gates only to computes the Boolean function of ¬((A → ¬B) ∧ (C → A)). my attempt is : Where I put arrows on two of the joints (where i believe "→ or Implies" goes in the function) is what…
Kaka Pin
  • 81
  • 1
  • 9