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
vote
1 answer

Why the assigned wires are x

I am implementing a MIPS Instruction decoder, but in the wave, I see all the assign logic variables like jump, immediate_i,regWrite etc as xxx, although I have initialized them as follows. Even if I assume that, for eg., in jump, J is X, shoudn't…
1
vote
1 answer

Implementing Boolean function, F using no more than two NOR gates

[Steps provided by solution manual] Implement Boolean function, F using no more than two NOR gates. F = AC' + A'D' + B'CD' F' = D + ABC F = [D + ABC]' = [D + (A' + B' + C']')]' Hi. I had this as a homework problem and I don't understand how the…
Minjae
  • 31
  • 1
  • 2
  • 8
1
vote
0 answers

Read data from text file and print it on Arduino serial monitor

I want to read the data from the text file and want to show it on the Arduino Serial Monitor. SO Below is the code which I extracted from Code extracted from! #include File myfile; void…
lokesh
  • 108
  • 3
  • 17
1
vote
1 answer

Simplifying logical expression

Is there a way to reduce this logical expression? I map out the circuit design to logical expression but I can't find a way to reduce it more, I feel that there is a way to do so. I've tried De Morgan's law but that only changes one statement not…
Lucky
  • 579
  • 6
  • 24
1
vote
0 answers

How do you know which registers are being written and read?

I know this isn't a site for hardware, but I feel like if I understand this it'll help with my MIPS Assembly coding overall. Thanks. The pipelined MIPS processor is running the following program. Which registers are being written, and which are…
Usman Hasan
  • 19
  • 1
  • 3
1
vote
1 answer

Static Hazard 1 and One Circuit Problems?

I read about Static Hazard. We know Static 1-hazard is: Input change causes output to go from 1 to 0 to 1. My note covers a Circuit as follows: My notes says: When B=C=D=1, for any changes in A values, it's probable to have Static Hazard 1. But I…
user5912880
1
vote
1 answer

Gate Cost of 16 bit Ripple carry adder, and 16 bit (Two Level) Carry Look Ahead Adder

Hi i was just curious what would be the gate cost of combinational 16 bit Ripple carry adder, and 16 bit (Two Level) Carry Look Ahead Adder. Thanks
1
vote
2 answers

Sequential circuit with feedack loop in Haskell

I would like to represent a circuit with the following behaviour in Haskell: The circuit has two inputs : a data input and a switch input and one output. When the switch = True then output t = input t when switch = False, output t = output…
fayong lin
  • 214
  • 2
  • 15
1
vote
4 answers

Easy way of dividing an integer by 3

I'm working on a project that is to make a simple music player on an FPGA. It takes a music file of a specified format from the PC and plays it out loud in loops. We need to implement the standard note lengths, i.e. Quaver for half a beat, Minim…
Einheri
  • 957
  • 1
  • 9
  • 22
1
vote
0 answers

Is a webcam-based program in python possible for my project?

I'm going to do a project on wheatstone bridge. So the idea is to replace a bulb instead of the voltmeter. Bulb will change in brightness according to the fluctuation of R4(resistor). However I'm looking for programming of a analyzer to analyse…
1
vote
1 answer

Overly long run time using if statement with or circuit in MATLAB

I'm using MATLAB R2014a and writing a program that will have to process millions of data points. The problem is that run time increases to an absurd amount once it gets past the hundreds of thousands mark, and even then it's longer than it should…
Kylie Knox
  • 13
  • 2
1
vote
0 answers

Python program to plot I-V curves of a bipolar transistor

I am trying to write a program in Python which can plot the I-V curves of a bipolar transistor with given device parameters Is, Vt, Va, and Beta. I also want to be able to, given the Q-point of the device, to compute the small signal parameters…
1
vote
1 answer

How to Resize sheet in ExpressSCH?

I have created a large schematic. It is larger than the default page size in ExpressSCH. I would like to resize the page boundaries to fit. How do you do this? There is a rectangle around the sheet, with small squares on each corner. I need to…
J-Dizzle
  • 4,861
  • 4
  • 40
  • 50
1
vote
1 answer

How to display float value on LCD 16x2

I want to display float value on LCD. I have using avr5.1 compiler and using the function snprintf to convert the float value to ASCII. But it gives the output on Proteus "?". Here is the code I am using; I have also include the…
1
vote
1 answer

Using JScrollPane for scroll and really big and zoomed custom drawing

I am working in a personal project. a circuit simulator if you are interested. In my project I use a JPanel to draw my content. I can move it and zoom it using AffineTransformations. Each time paint() is called I draw the area of the drawing the…
Alejandro Vera
  • 377
  • 2
  • 12