EEVblog Electronics Community Forum

EEVblog => EEVblog Specific => Topic started by: EEVblog on May 25, 2015, 07:37:27 am

Title: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 07:37:27 am
Dave goes back 20 years and find an old PC Based Logic Analyser project of his that was published in Electronics Australia magazine back in 1996. He uncovers the original timing diagrams, schematics, and prototype. And tries to resurrect the old Borland Pascal 7 source code and Lattice ispLSI PLD chip code.
And the old Protel Autotrax for DOS PCB and schematic files.
Will it all work 20 years later?
A bonus side detour into the venerable Tektronix TDS210/220 oscilloscope.

Original articles: http://www.eevblog.com/files/PCLA-Article-ElectronicsAustralia.pdf (http://www.eevblog.com/files/PCLA-Article-ElectronicsAustralia.pdf)
Original design notes: http://www.eevblog.com/files/PCLA-OriginalDesignNotes.pdf (http://www.eevblog.com/files/PCLA-OriginalDesignNotes.pdf)

https://www.youtube.com/watch?v=iwRhvhKJlzs (https://www.youtube.com/watch?v=iwRhvhKJlzs)
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: miguelvp on May 25, 2015, 08:11:27 am
There was no web in 1995? sure it was, maybe not for AOLers or later arrivals.

Btw nice video  :-+
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: ktulu on May 25, 2015, 09:29:03 am
Here are the two EXE files patched for Error 200. I hope Dave don't mind it.
(PCLA10 needs to be run under DOSBOX)
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 11:02:30 am
There was no web in 1995? sure it was

Yeah but it had bugger-all.
No such thing as online e-commerce, manufacturers with websites and PDF data sheets like we take for granted these days. Altavista was the search engine of choice, not that you ever found much. No such things as blogs or online video, or even modern forums, usenet still ruled that world.
There was basically nothing on there of real worth for a designer at the time.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 11:08:08 am
Here are the two EXE files patched for Error 200. I hope Dave don't mind it.
(PCLA10 needs to be run under DOSBOX)

Wow, just ran it, totally forgot what the main menu or disassembly screens looked like!
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: firewalker on May 25, 2015, 11:08:52 am
Is the source code available? :D

Alexander.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: gemby on May 25, 2015, 11:22:07 am
I was always wondering, how big and complex projects, like this one are made in those days. Today it is very much different, you can simulate almost everything, including hardware in hardware. In those days, it requires much more knowledge, time and devotion to bring out something like this. I remember, long time ago ( in galaxy, far, far away, off course ) i was trying to make programable digital timer for photography, made entirely in TTL logic, ok, this one came to documentation phase only, no prototype has been made, but it was hundreds, and hundreds of hours, shitload of printed documentation, and all done on paper and all simulations are done in head. Today, i would not even think of TTL logic, and not even try to assemble anything before simulation. Probably not even put anything on paper at all, it will all be in digital form.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 11:23:32 am
Is the source code available? :D

I'd mail it to you on a 3.5" or 5.25" floppy back in the day  :-+
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Fungus on May 25, 2015, 11:34:19 am
Your software looks nice...

Drill 717 holes by hand? Rather you than me.


PS: Tab indent size 8 on a DOS screen in Turbo Pascal? Fail! 3 or 4 indents and you're half way across the screen.

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: vlad777 on May 25, 2015, 11:58:22 am
How many Davids are there in your world?
Old Protel runs fine in DosBox emulator under W7.
Windows 7 and up doesn't run 16 bit programs.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Grapsus on May 25, 2015, 12:00:03 pm
Thanks a lot for the video! No nostalgia for me since I was five years old at the time. But I do know some of this stuff. Some time ago I helped my grandfather to run code that he wrote in the nineties using Borland Pascal 7. It was a pretty heavy graphical application for simulating thermo-dynamic systems, like power plants, somewhere around 30k lines of code. First we ran into all sorts of troubles to just launch the damn exe. Same error 200, lots of screwed up timings etc. And then we recompiled all the code to make sure we were able to reproduce the thing.

We tried a lot of different methods to run this stuff on modern machines: DOS on bare metal, Windows XP, Dosbox, Bochs simulator, QEMU, VMware and finally Virtual Box. All of them had some quircks, but in the end the absolute best environment was a VirtualBox VM. VirtualBox enables you to simulate hardware that's recognized by DOS without any workarounds, graphics are good, you can attach iso images on the fly to get files into the VM, slow down the CPU etc. I can export my VM with DOS installed and ready to go if anyone is interested.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: vlad777 on May 25, 2015, 12:06:50 pm
What 30k lines of code?
Tell us about this project, how many people ,did it sell.... ?
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 12:08:14 pm
Drill 717 holes by hand? Rather you than me.

No drill press either, all with a small hand drill.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: vlad777 on May 25, 2015, 12:37:45 pm

This is one of my first projects ,26 March 1998.
I was in high school ,but did this in my own time.
Looks like I used a wrong layer on some components, ups, no color monitor at the time.
Spoiler alert , it doesn't work.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: hikariuk on May 25, 2015, 12:55:38 pm
How many Davids are there in your world?
Old Protel runs fine in DosBox emulator under W7.
Windows 7 and up doesn't run 16 bit programs.

Windows 7 64-bit and up don't run 16-bit programs; Windows 7 32-bit still has WoW (as opposed to WoW64) for running 16-bit Windows programs.

The best way of running old DOS applications is probably just to use DOSBox though, as Dave appeared to be doing in some of the video.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Grapsus on May 25, 2015, 01:36:27 pm
What 30k lines of code?
Tell us about this project, how many people ,did it sell.... ?

Nope, it was purely an academic/research project, it was designed by professors, and many features were implemented by PhD students. I'm not sure how much I can tell in detail since the thing contains a lot of data about actual power plants. For the same reason the program had a copy protection to prevent people from taking it outside the university and it gave us a hard time to run the thing before we could recompile it. But my grandfather was very happy to see that this project could still work after all the time he spent on it back in the day.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Tek_TDS220 on May 25, 2015, 02:23:58 pm
"TDS 220....  Who can remember that?"  Just used one yesterday.  It gave me the data I needed.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: vlad777 on May 25, 2015, 05:17:47 pm
What 30k lines of code?
Tell us about this project, how many people ,did it sell.... ?

Nope, it was purely an academic/research project, it was designed by professors, and many features were implemented by PhD students. I'm not sure how much I can tell in detail since the thing contains a lot of data about actual power plants. For the same reason the program had a copy protection to prevent people from taking it outside the university and it gave us a hard time to run the thing before we could recompile it. But my grandfather was very happy to see that this project could still work after all the time he spent on it back in the day.


Wait, I just realized...
PhD students writing in Pascal?
That doesn't sound right, how come?


(Pascal was always a noob lang at universities.)
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: mushroom on May 25, 2015, 05:57:42 pm
Pascal was very popular in french universities...

Why... ? Probably because of Philippe Kahn. (Google that name)

On my side, I got Turbo Pascal (don't remember what version, maybe 3 or 4...), and immediately switched to TurboC 1.5. I *NEVER* used again this "language" (as crappy as Basic)
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: zapta on May 25, 2015, 06:26:52 pm
Pascal was very popular in french universities...

Why... ? Probably because of Philippe Kahn. (Google that name)

And then another Frenchmen invented Ada which is Pascal on steroids.

BTW, Philippe Kahn was also one of the pioneers of merging cameras and cell phones which at the time looked as a kitchen sink approach.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: coppice on May 25, 2015, 06:47:39 pm
There was no web in 1995? sure it was

Yeah but it had bugger-all.
No such thing as online e-commerce, manufacturers with websites and PDF data sheets like we take for granted these days. Altavista was the search engine of choice, not that you ever found much. No such things as blogs or online video, or even modern forums, usenet still ruled that world.
There was basically nothing on there of real worth for a designer at the time.
Didn't you ever come across sites like cdrom.com? That had lots of electronic design material in the mid 90s.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Grapsus on May 25, 2015, 06:55:37 pm
I wasn't working in the IT field at that time, but according to this article

http://en.wikipedia.org/wiki/Turbo_Pascal (http://en.wikipedia.org/wiki/Turbo_Pascal)

TP had a lot of advantages: first integrated IDE, small code footprint, super fast compilation, TPU modules with reusable code were available for a lot of tasks, and 50$ retail price, even by today standards is unbeatable. Performance-wise it's closer to C than to Basic. I think Pascal programmers would take offense for putting the two in the same basket.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Fungus on May 25, 2015, 07:04:59 pm
TP had a lot of advantages: first integrated IDE, small code footprint, super fast compilation, TPU modules with reusable code were available for a lot of tasks, and 50$ retail price, even by today standards is unbeatable.
I dunno. My copy of Visual Studio was free to download and includes quite a lot of stuff.

Performance-wise it's closer to C than to Basic. I think Pascal programmers would take offense for putting the two in the same basket.
Pascal was a terrible language. Fundamentally broken: http://www.lysator.liu.se/c/bwk-on-pascal.html (http://www.lysator.liu.se/c/bwk-on-pascal.html)

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: zapta on May 25, 2015, 07:18:21 pm
I think Pascal programmers would take offense for putting the two in the same basket.

Don't pay attention to language war trolling. :)

TP set a new standard for developer productivity at the time.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Carl_Smith on May 25, 2015, 07:37:08 pm
I did a lot of programming in Borland's Turbo Pascal, and I liked it a lot.  I still have all the books taking up space in one of my bookshelves even though I hadn't looked at one of them in years until today.  One of the things I liked was all the extra books that came with example material, like the Gameworks, Graphix, Editor, and Database toolbox books.  I spent countless hours back in the 80's reading through these learning programming and algorithms.  It was just amazing to me to have the full source code for something like a fully functional DOS text editor that I could just go through and examine as I pleased.

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: SeanB on May 25, 2015, 07:38:13 pm
A shed load of business core is still running that was written in Pascal. Although most of the code is now almost unmaintainable, because the original creators are either long gone, dead or did not write any more comments other than "don't touch this, i don't know how it works but it does" on large swathes of the source.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Grapsus on May 25, 2015, 07:45:27 pm
I come here for electronics talk, and I find that there's not a lot of trolling, people seem happy with different tools and the main question is "what are you going to use this for ?". But man, every time it comes to computers, there are these stupid endless discussions. Last time it was "how can you do any serious work with this OS ?" and now it's "everybody knows that the language X is for noobs", damn.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: nctnico on May 25, 2015, 08:07:29 pm
There was no web in 1995? sure it was

Yeah but it had bugger-all.
No such thing as online e-commerce, manufacturers with websites and PDF data sheets like we take for granted these days. Altavista was the search engine of choice, not that you ever found much. No such things as blogs or online video, or even modern forums, usenet still ruled that world.
There was basically nothing on there of real worth for a designer at the time.
IIRC companies started to put PDF files with datasheets online around that time (1995/1996). I recall having a list with links to datasheets on my 'homepage'.

Regarding Pascal: been there done that too but the biggest problem is the rigid structure of Pascal so it is hard to adapt the structure of a program to unavoidable requirement changes and Borland adding many C-isms later on. IIRC Borland's Delphi has about 7 different string types and one operation you can do on type A cannot be done on type B so you have to convert from B to A, do the operation and convert back from A to B.  |O After all Pascal was invented to teach people structured programming and not actually being used for any real software. However for many people everything looks like a nail if they only have a hammer...
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: jancumps on May 25, 2015, 08:41:21 pm
Pascal was very popular in french universities...

...

I had Pascal as the program language in my first year too (late 80's). To learn the principles.
Later we had c, cobol and assembler for the 68xxx.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: ivan747 on May 25, 2015, 09:18:13 pm
Episode #747 was about something I always wanted insight on!  ;D Thanks Dave!  :-DMM

And it even was in the year I was born  ::)
Sigh... I should publish something  :--
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: MartinX on May 25, 2015, 09:27:15 pm
I remember the internet in 1995 that was the year I got internet, dial up modem of course. Data sheets were not so easy to find and took a long time to download I remember getting CD ROMs from distributors at trade shows , that was a huge relief, I still got some Texas Instruments and National CD ROMs and the Farnell catalogue.

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: vlad777 on May 25, 2015, 10:11:29 pm
I come here for electronics talk, and I find that there's not a lot of trolling, people seem happy with different tools and the main question is "what are you going to use this for ?". But man, every time it comes to computers, there are these stupid endless discussions. Last time it was "how can you do any serious work with this OS ?" and now it's "everybody knows that the language X is for noobs", damn.

I didn't mean to troll, I was explicitly told (in school and faculty) that Pascal is a learning tool. Sorry.

EDIT: I did my final exam for high school in Pascal. It was a file manager with my graphical window system.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Carl_Smith on May 25, 2015, 10:39:40 pm
Episode #747 was about something I always wanted insight on!  ;D Thanks Dave!  :-DMM

I agree.   What else from Dave's past has he talked about but not made a video on yet?
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 10:41:29 pm
Pascal was a terrible language. Fundamentally broken: http://www.lysator.liu.se/c/bwk-on-pascal.html (http://www.lysator.liu.se/c/bwk-on-pascal.html)

Tell that to Altium who built a half billion dollar business out of it.
Title: Old Software
Post by: donmr on May 25, 2015, 10:46:57 pm
We used to say "You need to archive the old software, the old OS, the old hardware and the old engineer who knows how it all works."
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: EEVblog on May 25, 2015, 10:47:44 pm
Didn't you ever come across sites like cdrom.com? That had lots of electronic design material in the mid 90s.

IIRC it had bugger-all in 1995.
https://web.archive.org/web/19961221082532/http://www.cdrom.com/ (https://web.archive.org/web/19961221082532/http://www.cdrom.com/)
It was mostly shareware collections etc.
It took quite a few years for the main manufacturers to start releasing PDF's to the point where you went to the internet for info instead of your paper library.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: zapta on May 26, 2015, 12:27:04 am
I didn't mean to troll, I was explicitly told (in school and faculty) that Pascal is a learning tool.

Yes, it's also a great learning tool. 

:)

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: hikariuk on May 26, 2015, 04:10:16 am
I didn't mean to troll, I was explicitly told (in school and faculty) that Pascal is a learning tool. Sorry.

I was told the same thing when I was at college (UK style, meaning 16-18 education).  Although I was programming in C at that point anyway, mostly because - in common with a lot of people back then - I'd started teaching myself to program from computer magazines when I was young(er).
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: zapta on May 26, 2015, 05:59:43 am
Kernighans comments are about how Pascal is unsuitable as a systems programming language are perfectly well considered. And in doing so he entirely avoids highly opinionated value judgements like "terrible" and "fundamentally broken".

K&R C was terrible,  that's why it required so many extensions over the years.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: boffin on May 26, 2015, 06:07:15 am
Borland Pascal 'fixed' most of the things you couldn't do with J&W Pascal like variable length strings.

However, for systems programming you could (alleast in the Borland implementation) do very cool things with sets.  Imagine you had an IO port that controlled 4 lights and 4 fans; you could do stuff like this

type IOPins = (light0, light1, light2, light3, fan0, fan1, fan2, fan3);

var myIO  : set of IOPins;

myIO := [light0, fan0];
Port[1234] := myIO;
myIO := myIO + fan1 - fan0;    (* turn on fan1, turn off fan0 *)
Port[1234] := myIO;

or you could do things like
if (light1 in myIO) THEN


laying out IO ports as sets was completely awesome, and sure beats
Port := Port || _mybit4;
Port := Port && (! mybit2);

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: free_electron on May 26, 2015, 04:09:32 pm
YAY. PCB 1.61  that's what i started with. i had schematic 2.7 though , not 3.something.
I programmed in Turbo Pascal 3.5 which did not have a text-gui with mouse. just command line. I bought Turbo Assembler as well. Still have the books of that one i believe. That was the bees knees back then. Combine that with Tom Hogans 'the PC Sourcebook' and you could flick any register, and bit and interrupt and interface with the BIOS.  And there was also 'the undocumented pc' that came with 'Sourcer' , and incredble commenting disassembler.

Later on i bought PowerBasic ( used to be Turbo Basic but borland gave that back to its designer ) Powerbasic is still around. It creates very fast code. Faster than microsofts compilers.

I remember writing a TSR ( who remembers those. Terminate and stay resident programs ) that hooked into the mouse interrupt so i had a mouse caret in the dos command line. i coudl select a line of text and cope it from the screen buffer by directly reading video ram.

the first VGA card came and had RAMDACs and palettedacs so you could spin the color palette. you could also upload new fonts . i made an upside down font. kinda fun. stick the call in the autoexec.bat and every character was upside down on the screen.

ahhh . memories...
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: hli on May 26, 2015, 09:12:00 pm
The "error 200" is caused by using the CRT unit. On start up it calculates how fast the CPU is (to time the 'delay' function), which ends up in a division overflow when the CPU approaches 200MHz (and is reported as division by zero for some reason).
See J.R. Stockton's page (http://www.merlyn.demon.co.uk/pas-r200.htm) for more details and patches that might help.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: SL4P on May 26, 2015, 10:03:17 pm
... long time ago ( in galaxy, far, far away, off course ) ...
I'm sure George Lucas didn't envisage that...!
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Stonent on May 27, 2015, 01:21:49 am
How many Davids are there in your world?
Old Protel runs fine in DosBox emulator under W7.
Windows 7 and up doesn't run 16 bit programs.

64-Bit Windows Vista and higher do not have a 16 bit subsystem.  I believe the 32bit versions still do.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: CatalinaWOW on May 27, 2015, 02:36:47 am
Borland Pascal 1.0 was a game changer.  I was writing commercial software for CPM machines at the time as a hobby, and had copies of Microsoft's language studio of the day.  Included Basic, Fortran, COBOL and one other language I can't remember now.  I was proficient in FORTRAN, OK in Basic and the unremembered language.  No contact with Pascal.  The developers window and the really fast compile time completely overcame the limitations of the language and my lack of familiarity.  I was able to port my program to Pascal, correct errors due to translation and have it running in less time than one compile cycle took with the Microsoft languages.  This was on a 2MHz homebrew Z80 machine with 8" floppy drives.  The compile cycle for the MS languages took about half an hour while it was a few seconds for the Borland Pascal.  I think it took about fifteen iterations to get the stuff working, but it still beat whatever MS was doing.  I immediately switched, and stuck with them until OOP took over, and Phillipe Kahn apparently got wealthy and disinterested.  Still have and occasionally use the language.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: miguelvp on May 27, 2015, 02:45:28 am
Before Turbo (Borland) Pascal, Pascal was used to teach proper procedural and well structured programming.

I went the Turbo C and later the Turbo C++ route since the later wasn't even on the curriculum but Fortran and Cobol where mandatory (so was the report writer part of Cobol which I really hated, at least it put me off for going to work for a bank or the like), I did take VAX assembly as well, not sure that was mandatory but heck I was a sponge back then (and so I'm now), but I took all the electives I was able to get into, including C++ which was introduced into the curriculum later on, and C was pretty new even if it was around for a while, Fortran was still king.

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: boffin on May 27, 2015, 02:50:06 am
Before Turbo (Borland) Pascal, Pascal was used to teach proper procedural and well structured programming.

I went the Turbo C and later the Turbo C++ route since the later wasn't even on the curriculum but Fortran and Cobol where mandatory (so was the report writer part of Cobol which I really hated, at least it put me off for going to work for a bank or the like), I did take VAX assembly as well, not sure that was mandatory but heck I was a sponge back then (and so I'm now), but I took all the electives I was able to get into, including C++ which was introduced into the curriculum later on, and C was pretty new even if it was around for a while, Fortran was still king.

I thought I was the only person left on the planet that did VAX assembly. 
The ultimate complex instruction set with instructions like MOVTUC, POLYD and ACBL
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: miguelvp on May 27, 2015, 02:56:57 am
Before Turbo (Borland) Pascal, Pascal was used to teach proper procedural and well structured programming.

I went the Turbo C and later the Turbo C++ route since the later wasn't even on the curriculum but Fortran and Cobol where mandatory (so was the report writer part of Cobol which I really hated, at least it put me off for going to work for a bank or the like), I did take VAX assembly as well, not sure that was mandatory but heck I was a sponge back then (and so I'm now), but I took all the electives I was able to get into, including C++ which was introduced into the curriculum later on, and C was pretty new even if it was around for a while, Fortran was still king.

I thought I was the only person left on the planet that did VAX assembly. 
The ultimate complex instruction set with instructions like MOVTUC, POLYD and ACBL

What impressed me the most was the Queue instructions manipulating a circular double linked list, very powerful.
I did never used Vax assembly professionally, and funny, my teacher was Canadian, forgot his name long ago.

Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: SL4P on May 27, 2015, 03:36:23 am
Aargh... does FORTRAN on VAX count?
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: GonzoTheGreat on May 27, 2015, 06:39:08 pm
I thought I was the only person left on the planet that did VAX assembly. 
The ultimate complex instruction set with instructions like MOVTUC, POLYD and ACBL

What did these instructions do?
How many were in the instruction set?
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: miguelvp on May 27, 2015, 07:32:51 pm
I thought I was the only person left on the planet that did VAX assembly. 
The ultimate complex instruction set with instructions like MOVTUC, POLYD and ACBL

What did these instructions do?
How many were in the instruction set?
MOVTUC: Move Translated Until Character
moves a string from source to destination using a 256 entry translation table and will stop when the given character is encountered or either the source or destination string are done.
Both source and destination strings have lengths supplied.

POLYD: Polynomial Evaluation using D_Floating point format.
VAX supported 4 floating point formats of different sizes and exponents
F_floating 1 bit sign, 8 bits exponent (bias 127) 23 bits fraction (IEEE 754 single-precision float)

D_floating 1 bit sign, 8 bits exponent (bias 127) 55 bits fraction
(could be converted to F_float by discarding the last 32 bits, great for high precision calculations and then you could convert it to float for the final answer.

G_floating 1 bit sign, 11 bits exponent (bias 1023) 52 bits fraction (IEEE 754 double-precision float)

H_floating 1 bit sign, 15 bits exponent (bias 16383) 112 bits fraction

for the full description on what POLY did, look at page 322 of the linked doc.

ACBL: Add Compare and Branch (Long)
opcode limit.rx, add.rx, index.mx, displ.bw

limit is what to compare to, add is what to add to the index operand, displ is a sign-extended value for the jump when the comparison is greater than or equal to 0. Used for For and Do loops.

Here is the full VAX Instruction Set:
http://h20565.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c04623178 (http://h20565.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c04623178)

But really I don't think it's of any use anymore, but it was a really powerful instruction set, RISC superseded it in the early 90s and the Alpha chip just put the last nails in the coffin.

Other than in college I've never used it since since all the coding was done in Fortran or C, in the meanwhile DEC was switching to MIPS processors for their DECStations, final end of life for VAX was on the year 2000.

I worked using VAX until 1995, by that time we replaced our 8600 for a Dec Alpha server, original cost of the 8600 probably was around half a million and we got about $10,000 trade in value (after about 10 years) for the Alpha server that sat in the same huge room with halon system and power conditioning on a raised floor.

But that 8600 could have over one hundred users connected and no one felt a hitch. Awesome machine!
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Len on May 27, 2015, 08:26:30 pm
I thought I was the only person left on the planet that did VAX assembly. 
The ultimate complex instruction set with instructions like MOVTUC, POLYD and ACBL

What did these instructions do?
How many were in the instruction set?

Too much.
Too many.

It turned out that RISC CPUs with simpler instruction sets got higher performance because the hardware required to implement the VAX instruction set was so complex. And a compiler could produce faster code by ignoring some of the fancy instructions and using simpler ones. The CALLS procedure call instruction was a prime example of over-engineering.

I have many fond memories of using VAXes, but they had the Ford Expedition of instruction sets.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Carl_Smith on May 27, 2015, 11:50:14 pm
The ultimate complex instruction set with instructions like MOVTUC, POLYD and ACBL

The best assembly language mnemonic is from the PowerPC, called Enforce In Order Execution of I/O, written as EIEIO.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: SL4P on May 27, 2015, 11:53:56 pm
And the best assembly language (instruction set) for a long time was the PDP-11 family!!
Consistent addressing modes, all sorts of easy to remember functionality.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: kizzap on May 28, 2015, 05:39:39 am
Ignoring all the programming arguements, I have to note one thing:

It looks like the power input you have there has no protection what-so-ever  :-// :--

No fuse, no EMI filters? Not even a Power switch? (unless the Power input is a combination device of some sort.)

-kizzap
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: SL4P on May 28, 2015, 06:11:36 am
Well, it was a long time ago... declared as a rough and ready prototype... (With lashings of elec insulation tape!)
Apart from the transformer primary and technician's fingers, there isn't much more to protect I'm that plastic case !'
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: st on May 28, 2015, 07:18:53 pm
Does this look familiar at all?

Built this way back when I was still in school and Dave was _not famous_.
Didn't remember at all he had anything to do with it, but it's been sitting on my shelf all of those years.

Thought it would be fun to show this on the forum rather than just the youtube comment.

Should I keep this until it is worth as much as an Apple 1, or should I sell it on Ebay? ;-)

ST
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: RupertGo on May 29, 2015, 03:49:40 pm
For those who enjoy reliving the Coding Wars, the BBC ran a short series last month on Radio 4 about the cultural history of various programming languages called Codes That Changed The World. They're all available here http://www.bbc.co.uk/programmes/b05qqhqp/broadcasts/2015/04 (http://www.bbc.co.uk/programmes/b05qqhqp/broadcasts/2015/04), I think indefinitely, with no region block.

(oblig. disclaimer: I was involved in making these)
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: Wim_L on May 30, 2015, 01:30:21 pm
Pascal was a terrible language. Fundamentally broken: http://www.lysator.liu.se/c/bwk-on-pascal.html (http://www.lysator.liu.se/c/bwk-on-pascal.html)

Pascal was specifically designed for teaching. It intentionally lacked features that caused inexperienced new programmers to develop hard to debug problems. It should be judged in that context. It was neither terrible nor fundamentally broken. It should be judged in terms of how well it met its original intended purpose.

Kernighans comments are about how Pascal is unsuitable as a systems programming language are perfectly well considered. And in doing so he entirely avoids highly opinionated value judgements like "terrible" and "fundamentally broken".

Also take into account that the criticism was of standard Pascal at the time. The proprietary extended Pascal languages (like Turbo Pascal) had ways to get past some of the limitations of standard Pascal, at the cost of becoming harder to port to other compilers.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: mcs_5 on June 01, 2015, 11:25:51 pm
See J.R. Stockton's page (http://www.merlyn.demon.co.uk/pas-r200.htm) for more details and patches that might help.

There are also TSRs that "fix" the problem without patching executables or recompiling the code. I use r200fix written by Veit Kannegieser (available here: http://hobbes.nmsu.edu/download/pub/dos/r200fix.zip (http://hobbes.nmsu.edu/download/pub/dos/r200fix.zip)).

My PCB software, accounting software and probably other stuff has the r200 problem...
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: vkirov on January 16, 2018, 09:38:38 am
Are there any analogs for those LSI chips? I realy want to build this thing just for hobby purposes.
Title: Re: EEVblog #747 - PC Based Logic Analyser Project
Post by: PKTKS on May 11, 2018, 04:03:20 pm
I have seen Dave's  project...

And I do have some half dozens schematics and boards
from that time period too.

Mostly are obsolete but they are part of my stuff.

I have already found the FREE AUTOTRAX version released from ALTIUM.
Fine it works good enough under DOSBox.

But I can not find the companion SCHEDIT  set with libraries so to view
my schematics too in original format.

If anyone can help by pointing any  loadable usable version...

That would be very helpful to have my stuff back.

Thank you very much  any help welcome.
Paul