help me..newbie in this language

OP #3210537
please..can anyone help me to create the testbench for 
controller,datapath and alucontrol for the codes in attachment?it is 
hard to understand the codes so by doing some test bech hope it will 
help me to understand more..realy i'm a newbie..thank you
Attached files:
Guest #3210543
Hi,

if you don't know anything about the language verilog, than start a very 
simple project. Try to describe a "OR", "AND", ... gate, several flip 
flops, counter, and so on. Write testbenches for all this simple tests. 
Than, and only than you can do this without problem and you feel save, 
take your module and start to write an testbench.

If you have no idea how to describe a OR gate, counter, etc. than begin 
to read literature, otherwise you will fail completely!!!

Regards
Guest #3210577
If you are new, why do you start with such a complex thing like a 
processor?
Start with an blinking LED, even there are enough pitfalls for a newbie.
Guest #3210692
in fact this "minimips" is vey interesting code!

My recommendation to qayyum salleh:
If you are new to the subject and want to learn Verilog hands on - start 
with some blinking LEDs, reaction on switches, some easy combinatorial 
logic and register logic examples.
If you want to continue towards more complex things - have a look at the 
website www.fpga4fun.com.
Another very good resource for learning purposes is the minimalistic 
MCPU at opencores (just google for MCPU...) I rewrote it from its 
functional specs and that helped me a lot to learn how things work ;)

Good Luck!

Reply

A question of your own? This thread is over 13 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.