VHDL MODEL FOR SINGLE D-TYPE LATCH WITH 3-STATE OUTPUT

OP (Company: Student) #3863758
Hello all. I'm new to VHDL programming so please forgive me in advance 
if i ask any bad question. I have an assignment to create a VHDL model 
and testbench for SINGLE D-TYPE LATCH WITH 3-STATE OUTPUT device. I have 
started reading up as much as i can and time is running out. Could i get 
ideas, advice or any help on this topic? thanks
Moderator (Company: Titel) #3863775
Naija Coding wrote:
> I have an assignment to create a VHDL model and testbench for SINGLE
> D-TYPE LATCH WITH 3-STATE OUTPUT device.
Of course this is just a 10-minute job for a VHDL expert, but YOU got 
the excersise from your teacher. So, show what YOU have (at least you 
should have thought about it and written a few lines of code), then WE 
can discuss it. But no one here is intended to do your homework 
completely.

> I have started reading up as much as i can and time is running out.
You cannot learn by reading. You must learn by doing. Install one of the 
free toolchains (eg. from Altera, Lattice, Xilinx) on your PC and start 
working with it...
OP (Company: Student) #3867549
i have installed xilinx 14.1. Attached is what i have tried so far. 
Sorry it's my first time so still getting used to it. Any further help 
or advice? Am still working on it and my deadline is in 5 days
Attached files:
Moderator (Company: Titel) #3867591
Naija Coding wrote:
> Attached is what i have tried so far.
Pls post the code again. Simply copy it this way into your post:
1
[vhdl]
2
   your VHDL code
3
[/vhdl]
Then everybody can copy and edit it...

> Any further help or advice?
Whats the problem with this code? Do you get error messages? Or is there 
strange behaviour in the simulation with your testbench (which you 
didn't post up to now)?

> Any further help or advice?
I'm missing LE in the code. and I would split up the whole thing in two 
steps with a internal signal:
1. depending on LE latch the input to a internal signal
2. depending on OE switch either this internal signal or 'Z' to the 
output
You took 2 steps in 1 and began to stumble

> Am still working on it and my deadline is in 5 days
Then you must speed up a little bit. Your initial post was 4 days ago...

Reply

A question of your own? This thread is over 12 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.