From transistors to applications

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
Artlav
Member
Member
Posts: 178
Joined: Fri Aug 21, 2009 5:54 am
Location: Moscow, Russia
Contact:

From transistors to applications

Post by Artlav »

Alta lang, you say?

Let's say you develop a CPU - ALU, some generic creep, microcode.
An FPGA board to run the CPU in.
Now, a compiler from a customish language to that CPU.
Then, the OS and drivers in that language.
And finally, an application that draws a picture on the screen.

But the app draws the image with gaps...
Where is the problem?

-The app? Looks fine.
-The compiler? Tests run ok...
-The language? Sounds fine to me.
-The driver? Too simple...?
-The CPU microcode? Uh, it loads the OS all right...
-The memory bus? Hm?
-The SDRAM interface? Oh!

The SDRAM was missing a clock because the bulk copy command in microcode was too tight on memory access, and compiler used that one without asking, getting the app to receive swiss-cheese-like data! And OS worked because it copied from FLASH to SRAM...

Debugging is fun! Image Image Image Image Image Image Image Image Image Image Image :twisted:
Post Reply