Help in VHDL for Test becnh signal generation

Discussion in 'VHDL' started by sdon, Aug 28, 2009.

  1. sdon

    sdon

    Joined:
    Dec 2, 2008
    Messages:
    1
    Hello friends hi..

    i have two signal say a and b, here a is period signal having period of 3.3 ms and i want to generate signal b in such a manner that during high time of signal a,signal b should in "X" and remain till 399 ns after signal a goes low and then signal b start generating in period of 1024 ns as follow

    signal in state "X" uptill 532 ns
    signal in state "U" uptill 80 ms
    signal in state "1" uptill 186 ms
    signal in state "U" uptill 80 ms
    signal in state "1" uptill 186 ms

    so plz me guys out of this

    thanx in advance to all...........
    sdon, Aug 28, 2009
    #1
    1. Advertising

  2. sdon

    thecolororange

    Joined:
    Jun 26, 2009
    Messages:
    2
    If I'm understanding your question correctly, you could try something like the following:

    signal first_time : std_logic := '0';

    ...

    signal_a_process : process
    begin
    signal_a <= '1';
    wait for 1650ns;
    signal_a <= '0';
    wait for 1650ns;
    end process signal_a_process;

    signal_b_process : process
    begin
    if first_time = '0' then
    signal_b <= 'X';
    wait for 2049ns;
    first_time = '1';
    end if;
    signal_b <= 'X';
    wait for 532ns;
    signal_b <= 'U';
    wait for 80ns;
    -- and so on
    end process signal_b_process;

    Assuming you've named your signals "signal_a" and "signal_b", of course.
    thecolororange, Sep 6, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rajalakshmisahoo@gmail.com

    Test vector generation for ethernet frame using VHDL

    rajalakshmisahoo@gmail.com, Sep 20, 2005, in forum: VHDL
    Replies:
    1
    Views:
    1,504
    Mike Treseler
    Sep 20, 2005
  2. fastgreen2000@yahoo.com
    Replies:
    10
    Views:
    2,600
    Simon Peacock
    Oct 1, 2005
  3. tudormarchis
    Replies:
    2
    Views:
    452
    Dave Pollum
    Feb 8, 2007
  4. sonny
    Replies:
    1
    Views:
    423
    Ralf Hildebrandt
    Oct 26, 2007
  5. rossalbi
    Replies:
    4
    Views:
    2,849
    Alan Fitch
    Feb 18, 2008
Loading...

Share This Page