Author Topic: One chip logic operation challenge  (Read 13558 times)

0 Members and 1 Guest are viewing this topic.

Offline chebebaTopic starter

  • Contributor
  • Posts: 21
  • Country: se
Re: One chip logic operation challenge
« Reply #25 on: February 01, 2014, 03:48:33 pm »
Actually yes that would be a good use, (that or an optocoupler / analog switch to ground) as its a diode the truth table can only be filled when a positive and negative are provided one way,

Haha! Very creative idea :-+ Certainly small in terms of real estate. I will keep that on in the back of my head, although for this application the LED consumes too much power.
 

Offline oPossum

  • Super Contributor
  • ***
  • Posts: 1453
  • Country: us
  • Very dangerous - may attack at any time
Re: One chip logic operation challenge
« Reply #26 on: February 01, 2014, 09:57:17 pm »
It can be done with half of a 74HC03

No, this does not provide High Z output.

Yes it does - the 74HC03 is open collector output.
 

Offline jwm

  • Regular Contributor
  • *
  • Posts: 64
  • Country: us
    • NaN
Re: One chip logic operation challenge
« Reply #27 on: February 04, 2014, 02:33:55 am »
I keep on meaning to write a 'logic optimizer' that will take a truth table and optimize to the lowest chip count using standard 74/4k components using all of don lancasters tricks from his cookbook. It would be a fun project, I could see it being used as a standard homework assignment in a programming course on algorithm design rather than the standard 'program to play checkers' or whatever is used to teach branch and bound techniques.
John Meacham - http://notanumber.net/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: One chip logic operation challenge
« Reply #28 on: February 04, 2014, 11:56:28 am »
Quote
to write a 'logic optimizer'

Those fpga/cpld compilers do precisely that, and many more.
================================
https://dannyelectronics.wordpress.com/
 

Offline jwm

  • Regular Contributor
  • *
  • Posts: 64
  • Country: us
    • NaN
Re: One chip logic operation challenge
« Reply #29 on: February 04, 2014, 12:18:19 pm »
Quote
to write a 'logic optimizer'

Those fpga/cpld compilers do precisely that, and many more.

No, they optimize to minimum gate count, or at least to the specific internal architecture of a given CPLD/FPGA such as minimum usage of LUTs in FPGA or summation terms in a CPLD perhaps.

The espresso algorithm works pretty well for pure gate count optimization on this scale, I used a variant of it for programming GALs.

I want to optimize for minimum _chip_ count of a limited set of readily available chips, or find a way to implement it with a specific subset of chips. As in, answering the type of question that started this thread. Also, in addition to the one, zero, and don't care it also must understand things such as open collector, tri-state, and so forth and use resources like the 4066 switch that isn't quite a logic gate but quite handy for simplifying logic circuits.
John Meacham - http://notanumber.net/
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: One chip logic operation challenge
« Reply #30 on: February 04, 2014, 12:23:27 pm »
Quote
I want to optimize for minimum _chip_ count of a limited set of readily available chips,

Easy: limit your "readily available chips" to NAND gates and use the said fpga/cpld software.

That's actually what I do - HC132 all the way, :)
================================
https://dannyelectronics.wordpress.com/
 

Offline jwm

  • Regular Contributor
  • *
  • Posts: 64
  • Country: us
    • NaN
Re: One chip logic operation challenge
« Reply #31 on: February 04, 2014, 02:02:11 pm »
Quote
I want to optimize for minimum _chip_ count of a limited set of readily available chips,

Easy: limit your "readily available chips" to NAND gates and use the said fpga/cpld software.

That's actually what I do - HC132 all the way, :)

Due to a misorder a while ago I ended up with 250 extra 74LVX14 chips. Turns out you can find a whole lot of things to do with schmitt inverters... My favorite recent trick is to use two in a loop with 10k resistors and diodes as a S/R latch. That's three S/R latches with inverting an normal inputs and outputs per 74xx14! I even made up little breakout boards (picture attached) for them to motivate me to breadboard with them more. I call them schmites (schmitt + mite).

When I am feeling nostalgic for the apollo guidance computer I limit myself to 3 input nor gates. :)

« Last Edit: February 04, 2014, 02:15:40 pm by jwm »
John Meacham - http://notanumber.net/
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11712
  • Country: my
  • reassessing directives...
Re: One chip logic operation challenge
« Reply #32 on: February 04, 2014, 02:21:24 pm »
Lets go overboard, use a 8 pin pic uC
With tri-state outputs? They exist?  ::)
try smaller 6pins sot like pic10f200, you have extra 1 pin to mess around. 3 drawbacks.. 1) respond time can be a problem in some app 2) it sucks more power 3) you need to program it.
edit: duh this is a 3 pages thread i tot i thaw a putty tet.
« Last Edit: February 04, 2014, 02:27:55 pm by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: One chip logic operation challenge
« Reply #33 on: February 05, 2014, 01:38:27 am »
Quote
74LVX14

As a basic building block, a NOT gate is not as useful as a NAND or XOR gate.
================================
https://dannyelectronics.wordpress.com/
 

Offline jwm

  • Regular Contributor
  • *
  • Posts: 64
  • Country: us
    • NaN
Re: One chip logic operation challenge
« Reply #34 on: February 05, 2014, 02:05:54 am »
Quote
74LVX14

As a basic building block, a NOT gate is not as useful as a NAND or XOR gate.

Since it is schmitt, all you need are some diodes to turn them into NOR,OR,AND or NAND gates. No easy way to do XOR I think..

http://www.musicfromouterspace.com/analogsynth_new/ELECTRONICS/mickeymouselogic.html
John Meacham - http://notanumber.net/
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6289
  • Country: 00
Re: One chip logic operation challenge
« Reply #35 on: February 05, 2014, 07:09:43 am »
You can try an analog/switch/mux with at least two digital input. The correct combination will connect the output to ground, floating otherwise.

Here is an arbitrary example, there are many more.

http://www.nxp.com/documents/data_sheet/NX3L4357.pdf

Here is another one, with easier to solder package

http://www.toshiba.com/taec/components2/Datasheet_Sync//165/7442.pdf
« Last Edit: February 05, 2014, 07:13:06 am by zapta »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf