TrickyDicky
Advanced Member level 7
the first step would be to do something like this:
This way, it makes more sense, and you're not manually drawing the wave forms. It would be quite simple to make procedures to send SOF, EOF, or some specified data.
Code:
process
procedure send_one is
begin
dataout <= '1';
wait for HIGH_TIME_ONE;
dataout <= '0';
wait for LOW_TIME_ONE;
end procedure send_one;
procedure send_zero is
begin
dataout <= '1';
wait for HIGH_TIME_ZERO;
dataout <= '0';
wait for LOW_TIME_ZERO;
end procedure send_zero;
begin
--------------------
--First init the bus
-------------------
send_one;
send_one;
-----------------------
--send start of frame
------------------------
send_one;
send_zero;
send_one;
--etc
This way, it makes more sense, and you're not manually drawing the wave forms. It would be quite simple to make procedures to send SOF, EOF, or some specified data.