VHDL project errors

Moderator (Company: Titel) #4048001
Rate this post
• ▲ useful
▼ not useful
Saeid Syd wrote:
> I have 3 errors in my VHDL project
And now we should find this bugs on our own?
What about telling us what the toolchain (btw: which one?) tells 
you?

It sounds like you give your car to a mechanic and tell him:
I have 3 problems with my car!

I already found a major design flaw:
1
use ieee.numeric_std.all;
2
USE IEEE.STD_LOGIC_ARITH.all;
3
use IEEE.STD_LOGIC_UNSIGNED.ALL;
This may not cause problems up to now, but with all those libs together 
you have some double definitions of data types.

My suggestion ist:
Do NOT ust the od std_logic_xxxx libs. Instead use solely the 
numeric_std. It has all you will need. Your teacher should tell you 
this...

And also this here is NOT a neat idea:
1
      id_V2 : inout std_logic_vector (15 downto 0); 
2
      ...
3
      trame_moins_CS : inout natural
Use INOUT solely for real bidirectional ports. Do NOT use it for 
lazyness to read back a OUT port in you design.

And also this here is not nice:
1
      trame_moins_CS : inout natural
2
   : 
3
   :
4
  signal adresse : integer;
5

6
  --signal trame_moins_CS : natural;
7
  signal taille_data : natural ;
8
  signal taille_trame : integer ;
You should not use an integer without a RANGE. Otherwise the simulator 
cannot find a overflow...

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.