Verilog Code Help

OP (Company: RMIT) #3775837
Rate this post
• ▲ useful
▼ not useful
Hi
Is there anyone on this forum who can help me write a verilog program 
for a stopwatch. I need it within the next two days to pass my subject. 
I am attaching the problem sheet. This is a completely new language for 
me and if anyone out there can help it would be much appreciated.

I need  to design a stopwatch with three input buttons
button1:start/stop
button2:reset
button3:lap

And n display output of hh mm ss(hours minutes seconds)
hours go from 0-99
minutes 0-59
seconds 0-59
Attached files:
Moderator (Company: Titel) #3775885
Rate this post
• ▲ useful
▼ not useful
Navtej Johal wrote:
> I need it within the next two days to pass my subject
Thats not the way things work here!
Let's try it the other way: you show us what you have and tell us about 
particular problems. THEN we can discuss that problems. But no one is 
intended to do your homework (which you have laying around at least 
days...).

BTW: did you read the last sentence on that sheet?

And: Did you try Google?
http://www.google.com/search?q=stop+watch+verilog
(Company: Rv-VLSI) #3782446
Rate this post
• ▲ useful
▼ not useful
Hey hello,
I have a problem here!
A am designing 4:1 mux using 2:1 (Structural).
In 2:1 mux I have written like this,

module mux2to1(y,i,s);
input [1:0] i;

I am using this as a instance in 4:1 prog,
where I am giving inputs as

wire sig1,sig2;
mux2to1 u1(y,sig1,sig2,s0);

Error is : Too many port connections. Expected 3, found 4.

It means thing is that 'i' input in mux 2:1 is recognized as a single 
input by software though I am defining it [1:0] in next line..

Is there any different solution available ?
Or I simply have to do like mux2to1(y,i0,i1,s);

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

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.