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
-3
votes
1 answer

What will be the circuit for the counter with oscillating 1s (1000, 0100, 0010, 0001, 0010, 0100)?

I have a basic understanding of custom counter. I know of a method to implement (8,4,2,1,2,4) counter i.e. using FSM, but I am not able to figure out how the circuit will get implemented?
-3
votes
1 answer

Checking a circuit for errors

This might be a very simple but a bit longer question and I would appreciate all the help! Here's what we have: an FPGA card (Spartan-3e to be precise) - 8 switches, 8 LEDs, and a very simple Verilog code: module Lab1_1( input [7:0] sw, …
Varad
  • 1
  • 3
-3
votes
1 answer

Verilog Calculator w/ 16 bit signed inputs

I need to build a calculator that takes 2 signed 16 bit numbers (in1, in2) and preforms functions on them depending on the opCode (a 4 bit input). The outputs should be a signed 16 bit number named 'result' and one bit 'overflow' I really need help…
-3
votes
1 answer

Find the Shortest Cycle in Graph

I have a problem with finding cycles in graph. In the condition we have to find the shortest cycle in directed graph. My graph is (A,B,C,D) and the connections (arcs) between the elements are: (A->B), (A->A), (B->C), (B->A), (C->D), (C->A), (D->A)…
-3
votes
1 answer

Making a C17 circuit in C++

I'm trying to simulate a C17 logic circuit in C++ using a Library called LibLCS. Click here to see an example of a digital circuit made with this lib. But isnt working. I cant compile the code and I have no idea why. #include #include…
Leonardo Alves
  • 37
  • 1
  • 10
-3
votes
1 answer

Racing/ S-R Circuits?

Following truth table resulted from the circuit below. SR(NOR) latch is used. I have tried several times to trace through the circuit to see how truth table values are produced but its not working. Can someone explain to me what is going on ? This…
Jenna Maiz
  • 792
  • 4
  • 17
  • 38
-3
votes
1 answer

calculate the difference between two binary numbers with a logic circuit

I wanted design a logic circuit that calculates the difference between two binary numbers with sign A and B with 4 bit and also would like to calculate propagation delay and determine the value?? could anyone help! I did make a xor gate with a…
anil cheetri
  • 1
  • 1
  • 2
-3
votes
2 answers

Get all ellements and attributes of an element root using jQuery

I need to find all elements name in tag and all attributes in each element by using JQuery , each element has different attributes name and value i need to know this attributes name and value but don't know how
EmanAli
  • 13
  • 2
-3
votes
2 answers

From a circuit to a Turing machine

I have read my book everything that says about turing machines and how they work but i havent got a single clue of how to make this essay.Even though i managed to get all exersices right about Turing machines this just makes me hit my head up in the…
Andreakos
  • 29
  • 7
-3
votes
2 answers

How I do a subtraction 2 numbers in a sequential circuit?

I need to do a circuit in which I subtract 2 numbers. I believe I need to use the SUM and a sign bit, and some masks, but I cannot figure out how to put it together. [LATER EDIT] i tried to do "15-3". 15 in binary is 1111 3 in binary is 0011 I…
user2252231
  • 1
  • 1
  • 2
-4
votes
1 answer

How do I reverse engineer this truth table?

How Do I know which functions were performed to get this truth table? Any help Appreciated The truth table:
-4
votes
1 answer

Android: How to send and receive signals from a phone

I wanted to check if this is possible, i looked around in the net and i didn't find one answer. Is it possible to use a phone via app to send a signal into a circuit and to receive the same signal back in the app? Basically is there a library that i…
-4
votes
1 answer

What's the truth table of this circuit

I'm trying to make a truth table of this electronic circuit: How does this work? How can I know what the value of B is for example A = 0 and C = 0? Isn't this an infinite recursive structure? Or how does that work? I used Logism to simulate the…
user4424299
-4
votes
2 answers

Write logic gates from logic gate circuit

Could someone please show me how to write the logic from this logic circuit? Following you guys' explanation, I have these results, am I right: The question is which one of a, b, c, d produces the same ouput as the first circuit. I don't see any…
f855a864
  • 177
  • 10
-4
votes
1 answer

Why isn't this code working properly?

This is driving me crazy, I am working on a circuit simulation program, and every time I ask a question about it it gets closed. I seriously need help, but my questions get closed before anyone can help me answer them. Anyways, here is the…
Sam Tubb
  • 945
  • 3
  • 19
  • 40
1 2 3
20
21