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

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now