VHDL code for this timing diagram.

Status
Not open for further replies.

vipinlal

Full Member level 6
Joined
Mar 8, 2010
Messages
357
Helped
76
Reputation
152
Reaction score
60
Trophy points
1,308
Location
India
Activity points
3,191
I want the signals to change as shown in the following timing diagram.The inputs are "busy" and "clk" and output is "dataenable".
These signals are used for interfacing my module with another module.Can anyone give a VHDL code or hardware circuit for this.Just plain ideas are also welcome.

The test bench used for creating this wave form is given below:

DataEnable <= '1';
wait for clk_period*2 ns;
DataEnable <= '0';
wait until Busy = '0';

thanks in advance,
vipin
 

Attachments

  • wave.bmp
    180.5 KB · Views: 131

clocked process:
busy_d <= busy;

combinatorial:
dataenable <= not busy or not busy_d;

this would give the above response. keep in mind that busy_d needs to have an init of '1' and, if reset, needs to be reset to '1'. otherwise dataenable will be high on the first cycle out of reset even if busy is high.
 
That worked very well.Thanks a lot permute.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…