Verilog simple cpu doesn't work [closed] - verilog

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am trying to create a simple cpu using verilog but i couldn't.
I am using a logisim circuit as starting point.

To debug Verilog code problems, you need to create testbench stimulus code and run simulations.
The diagrams you linked to are too difficult to read. Since you didn't provide any of the submodules, no one can compile your code. You didn't describe what output you are getting and how it differs from what you expect.
Break your problem down into smaller pieces and start debugging each individually.

You're using blocking assignments exclusively which can cause problems with sequential logic. If this is a Xilinx FPGA there are coding guidelines. As toolic said, you need to make a testbench and simulate your design.

Related

How do I create a PSP emulator? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I know that I need to know at least C and Assembly. In your own opinion what else does one need to know apart from knowing how to program in C and Assembly efficiently? Are there any books you can suggest to get me started? I also read that you need to know about the hardware architecture of the platform you are emulating. Would you also recommend the books listed here?
For experts only
You would have to know all the inner workings and hardware details of PSP, which are business secrets of Sony and therefore not published. The way most emulators are made is reverse engineering, a process in which the device itself is disassembled and its inner workings are studied. That includes analyzing the chips thoroughly, reading the contents of ROM chips and sometimes even deciphering encrypted data. Full analysis usually requires specialized equipment and years of engineering experience.

Force Directed Layout in Haskell [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am having some troubles in implementing Force Directed Layout in Haskell. The algorithm is based on considering the entire graph as a physical system, the force are applied to the nodes , pulling them closer or pushing them further apart. Quite new to Haskell, so can you tell me which module to draw graph, objects, to visual things in Haskell. Or some idea to start with this algorithm?
which module to draw graph
Perhaps graphviz, or for a more complete solution, you might try force-layout, the first hit on Google for "force layout haskell".

Thread Synchronization Primitives [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I am looking for a good material on different thread synchronization primitives that are generic (not tied to any language or implementation. I only want the concepts).
Searches in the internet point to specific language or implementation.
Well, it will be hard to find such resources, because they are almost always accompanied with some (at least pseudo) code example. Unless someone better informed than me sees this question :)
I would suggest exploring wikipedia for starters, e.g.:
Producer consumer problem
Dining philosophers problem
Sleeping barber problem
Synchronization (computer science)
Inter-process communication
look at the linked general words, links and external links, once you get familiar enough in the desired direction it would be ideal to find a scientific article that covers the topic - they are full of many references, and evenutally you'll stumble upon some great article(s).

Parallel computing in image processing? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Can anybody give me some examples and brief explanation of parallel computing in image processing (that could make use of CUDA kernels on an Nvdia GPU) ? For example with regards to pixels my perception so far is that the image could be split into smaller sections and same process applied to those sections to build the overall objective, but is there more to it than that? Also how would that be achieved in terms of programming?
Check this : http://supercomputingblog.com/cuda/intro-to-image-processing-with-cuda/
The linked page contains direct answers to your questions, and example code for a quick start.

What threading pratice is good 90% of the time? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
What practice or practices are good 90% of the time when working with threading with multiple cores?
Personally all i have done was share immutable classes and pass (copy) data to a queue to the destine thread.
This is very vague - but there are a few basic precepts I'd always follow:
Make sure threading makes sense before you implement it
Focus on algorithms, not individual lines of code when designing for threading
Thread at the highest level possible
Prefer immutable data
Synchronize data access appropriately
Prefer high level threading libraries over low level, hand written threading code
Measure (make sure 1. was true!)

Resources