Simulating a circuit?

Thread Starter

TripleDeuce

Joined Sep 20, 2010
26
I'm doing my prelab and it tells me
to simulate the circuit, the input should go through all possible combinations of A, B,C,D from 0000 to 1111 in the natural sequence. The clock cycle is taken to be 100ns. Assume that all the gates have the same 10ns propagation delay for any transition. Draw the following waveforms: A, B, C, D, and F. Specify the time scale!
The function is given as F=(A'B) + (BCD'). I drew this out and then it asked me to use NAND-NAND realization for the function. So I made the AND gates NANDs and the OR gate a NAND as well and have this as my expression

F=((AB)'(BCD)')'

I made a truth table for the whole thing already as well. I just don't know how to draw the waveforms. We never really touched on this topic in class. Is there a software I could use to draw them?
 

Georacer

Joined Nov 25, 2009
5,182
There is but I think it would be too complicated at this point to describe the circuit in HDL (Hardware Description Language) and simulate it. I guess it is better to do it by hand or line by line on the computer.

The key to this exercise is the following: You change your input every 100ns. But the gates have a delay of 10ns each. The circuit incorporates two levels of gates, the first NANDs that multiply the inputs and another NAND that multiplies the previous result. Total delay=(you can find that yourself).

So plot the input signals A,B,C,D and change them appropriately when needed. For example D will change every 100ns. Also draw F but it will change a specific time after each input change, time which is equal to the total delay you found earlier.

Don't overlay the plots, it will make a mess. Rather draw them one under the other with the time axis aligned.
 

Georacer

Joined Nov 25, 2009
5,182
Take a look at these pictures to get an idea of what you have to do.
http://www.google.gr/imgres?imgurl=...&ndsp=28&ved=1t:429,r:7,s:41&biw=1680&bih=868
http://www.google.gr/imgres?imgurl=...3JBw&esq=1&page=1&ndsp=41&ved=1t:429,r:16,s:0
(Wow, huge links!)

I 'm afraid you will have to cycle through all 16 combinations. Dedicate 1 line for each input and output. Every vertical imaginary line is one time moment, so you will have to synchronize your inputs so that they go through all the combinations as time goes by.

Don't forget to add time delay to the output!

Post your graph for us to comment it.
 
Top