Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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: 113

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top