- Joined
- Oct 2, 2009
- Messages
- 19
- Reaction score
- 0
So I generated some std_logic bits for bitout(i). I had something like
PS: Please someone tell me I can just write something simpler for this, like
Example is
For write(L, bitout(0)) through to bitout(7) (for eg.), error message was "write expects 2 arguments". What 2 arguments are they asking for?
Code:
if b(i-1) > "0100" then
bitout(i) <= '0';
elsif b(i-1) < "0100" then
bitout(i) <='1';
elsif b(i-1) = "0100" then
bitout(i) <='X';
end if;
Code:
if b(i-1) > ....
elsif b(i-1) < ....
else ...
Example is
Code:
use STD.textio.all;
process
file output : text open WRITE_MODE is "nice_file.txt";
variable L : line;
begin
write(L, bitout(0));
...
write(L, bitout(7));
writeline(output, L);
end;
For write(L, bitout(0)) through to bitout(7) (for eg.), error message was "write expects 2 arguments". What 2 arguments are they asking for?