Questions tagged [digital-logic]

Digital logic is the representation of signals and sequencing of a digital circuit. It is the basis for digital computing. (Note: There is the Electrical Engineering Stack Exchange website which is more suited to asking questions on hardware.)

229 questions
1
vote
1 answer

How to find period of the clock pulse with frequency.

for example: the period is 10ms and i need to find the frequency it would look like this: f= 1/t = 1/10ms = 100Hz because (10ms=.01 seconds, so its really 1/.01=100) I understand that but when it changes to a larger unit such as GHz i get confused.…
stacker
  • 233
  • 1
  • 5
  • 14
1
vote
1 answer

Number of Prime Implicant and EPI

My TA solve this problem, Number of Prime Implicant (PI) for f(a,b,c,d)= Sigma m(0,2,4,5,8,10,11,13,15) is 7 and number of Essential PI (EPI) is 1. how this will be calculated? I think it's wrong. any idea? My solution is :
user4591951
1
vote
1 answer

Self complementing Codes

This statement was deemed true: Given any self-complementing decimal code scheme, if we know the codes for the number 283, then we can deduce the codes for 671. I wanna know why. I took Excess-3 BCD as the self complementing…
RStyle
  • 875
  • 2
  • 10
  • 29
1
vote
0 answers

FullAdder - subtraction - overflow indication

I have a true table of full adder. Now i want to complete the adder so that it can also used used for subtraction (with overflow indicator). (OF = XYS'+ X'Y's) x y cin --- cout s 0 0 0 --- 0 0 0 0 1 --- 0 1 0 1 0 --- 0 1 0 1 1 --- …
1
vote
2 answers

Time complexity in n bit array multiplication

Consider an array multiplier for multiplying two n bit numbers. If each gate in the circuit has a unit delay, the total delay of the multiplier is ? Θ(1) Θ(logn) Θ(n) Θ(n^2)
Jay Teli
  • 530
  • 1
  • 11
  • 19
1
vote
1 answer

FSM (moore machine) verilog

when we write FSM in verilog there are two ways to write FSM first is using 3 always block(1 for next-state combinational logic + 1 for presene->next state sequential logic + 1 for output logic) and second way is to use only one always block for all…
user3091069
  • 111
  • 1
  • 3
1
vote
2 answers

Boolean algebra minimization

F = ABC + AC + C'D' is there a way to minimise this function even further because i want to make the circuit diagram with only 2 input nand gates any suggestions ? thanks
1
vote
1 answer

Using opcodes in digital circuit design

I'm working on a circuit which performs basic operations such as addition and subtraction using logic gates. Right now, it takes 3 inputs, two 4 bit numbers, and a 3 bit opcode which indicates what operation to perform. It seems that a 3-8 decoder…
Bob Shannon
  • 638
  • 2
  • 10
  • 19
1
vote
5 answers

Digital Circuit understanding

In my quest for getting some basics down before I start going into programming I am looking for essential knowledge about how the computer works down at the core level. I have a theory that actually understanding what for instance a stackoverflow…
ThomPete
  • 155
  • 1
  • 9
1
vote
2 answers

Byte Manipulation for MIPS instruction set

I would like to do some byte manipulation using MIPS instruction set. I have register $S0 which has 0x8C2E5F1E and register $S1 which has 0x10AC32BB. I would like to store the second byte of $S0, 5F, into the third byte of $S1, AC. My logic would…
Salchem
  • 118
  • 1
  • 2
  • 11
1
vote
0 answers

MIPS Store Byte and Store Halfword Implementation

I'm currently implementing a single cycle MIPS processor and am working on implementing the SB and SH instructions. I've successfully implemented the LB/LBU and LH/LHU instructions using the idea from this thread: Load half word and load byte in a…
Wallboy
  • 154
  • 5
  • 14
1
vote
1 answer

Use of wire inside an always block?

Can I use a wire inside an always block? Like for example: wire [3:0]a; assign a=3; always @(c) begin d=a+c; end It got compiled without throwing any error. Why?
aditya3524
  • 175
  • 2
  • 4
  • 12
1
vote
1 answer

4 bit binary number multiplier by 3 (mod 16)

I have a question in a past paper which asks to design as a minimised sum of products, and using only NAND gates, a circuit which takes 4 bit binary input and multiplies that number by 3 (mod 16) Here is the truth table I have derived Inputs …
sam
  • 2,469
  • 8
  • 37
  • 57
0
votes
3 answers

self completing code

https://electronics.stackexchange.com/questions/20537/how-to-identify-self-complementing-code I have read that properly , but is it necessary that , the number need to be subtracted from 9 ? because in the 8421 system 12= 1100 and if we…
Munjal Upadhyay
  • 189
  • 2
  • 4
  • 13
0
votes
0 answers

Draw Logic Circuits using python's schemdraw

I want to draw this equation with schemdraw '(PB01) and (not LT02)' I Get something like this. here's my code : import schemdraw import schemdraw.logic as logic # Create a new drawing d = schemdraw.Drawing() # Add the PB01 input PB01 =…