Searching for software for logic optimization

Click For Summary

Discussion Overview

The discussion revolves around the search for software tools for logic optimization in a hobby project involving custom gate configurations. Participants explore the limitations of existing software, specifically Logic Friday, in mapping logic functions to a specific set of gates without using NOR or NAND gates.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant describes their project involving a truth table and the need for software that can minimize and map logic functions without relying on NOR or NAND gates.
  • Another participant questions the necessity of using discrete gates, suggesting that modern alternatives like PICs or BASIC Stamps could simplify the task.
  • A participant expresses a desire to pursue the project in a non-efficient manner, emphasizing the importance of minimizing gate usage without unnecessary work.
  • One participant shares a link that discusses achieving optimal sum of products representation, but notes that the challenge lies in mapping to the specific gates available.
  • A suggestion is made regarding an older program called Espresso, which may assist in logic minimization, while questioning the feasibility of not using NAND or NOR gates in the design.
  • A later reply clarifies that the participant does not have AND gates and mentions the complexity of implementing logic functions with the available gates.

Areas of Agreement / Disagreement

Participants express differing views on the necessity and practicality of using discrete gates versus modern alternatives. There is no consensus on the best approach or software to use for the logic optimization task.

Contextual Notes

Participants mention limitations in the software tools available, including the inability to select certain gates and the implications of using complex gate configurations. The discussion reflects a range of assumptions about the project requirements and technology constraints.

Who May Find This Useful

This discussion may be of interest to hobbyists and engineers working on custom logic design, particularly those exploring software tools for logic optimization and gate configuration challenges.

TRan
Messages
4
Reaction score
0
I've got quite an unusual hobby project and so far, after couple of nights googling, I haven't found software that would fit the bill. I've got the truth table representing what I'd like to do and can minimize & map it to gates using Logic Friday.
The problem is, I don't have NOR or NAND available and Logic Friday won't map to gates without checking one of those as "available". Of course, I can construct those with the gates I have, so Logic Friday gives me a solution. Sadly, that solution is not very optimal because the program thinks that a NOR is just one gate, when in reality, I'd have to use a NOT and a OR.
Another issue is that I've got some gates(the prime offender being the ANDNOT (p & !q) ) that are not even listed in the menu to select. Therefore, i can't take advantage of those easily and even if i did, the result would probably be less than optimal.
With the problem size i have, i think i could write something that would brute force every combination of gates from a predefined set and output the one that produces the correct output with the least amount of gates, but i really don't feel like doing that if can avoid it.
 
Engineering news on Phys.org
What exactly are you attempting to do? It's rare these days to require complex assemblies of discreet gates; nearly anything you want can be done with a PIC, PICAxe or BASIC Stamp with just a little programming.
 
It's more like... I want to do things the hard way, it doesn't have to be efficient or even practical or anything like that. I still don't want to do unnecessary work, so I need to be economical about my gate usage.
 
Some of the following may help:

http://www.facstaff.bucknell.edu/mastascu/eLessonsHTML/Logic/Logic2.html
 
Resurrecting this topic after my trip around the Baltic sea...
The link pretty much talks about how to get the best sum of products representation and how to implement it. That wasn't the problem. Logic Friday already gives the best answer in a few seconds and I could easily implement that. The thing is, I don't know what's the best mapping to the set of gates I can use.
 
A long time ago I used a program that might fit then bill. I think it was called espresso and may have been open source and written at UC Berkeley. Haven't seen it in 10 years though.

Most contemporary design flows, ASIC or FPGA, have a higher level synthesis tool that performs the logic minimization automatically.

What technology are you using that you can't have a nand gate or a nor gate? In CMOS an AND gate is a NAND gate with an inverter so it doesn't make sense to have an AND gate without a NAND gate. In your design you would have a "AND NOT NOT"( 8 transistors) rather than a NAND (4 transistors).

If it isn't simple enough to do by hand then why not use a CPLD?
 
Actually, I don't have AND gates. What I meant with the sum of products representation is that I can implement it, but I have to use several gates to make an AND. Anyway, I don't like to get into specifics about the project.
Thanks for the tip about Espresso. Logic Friday is built on it, but maybe there's some code I can reuse. It seems that it's time to give up and do some programming. Oh well, such is life.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 8 ·
Replies
8
Views
9K
  • · Replies 29 ·
Replies
29
Views
4K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 8 ·
Replies
8
Views
6K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K