Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

custom instruction

Hi,

when trying to use a combinatorial custom instruction on an output to vhdl, I get needle-like impulses, which vary in width and time to each other, on an oscilloscope. This already occurs after the the .sof file is loaded into the cyc2c35 evalboard.

Because of the needles an operation under c does not make sense yet.

I used the following vhdl code in my design:

-----

--header as in tutorials

entity cust_io is

port

(

signal dataa: in std_logic_vector (31 downto 0);

signal result: out std_logic_vector (31 downto 0);

signal output: out std_logic_vector (31 downto 0)

);

end cust_io;

architecture interface of cust_io is

signal res: std_logic_vector(31 downto 0)

begin

process(dataa)

begin

res<=dataa;

result<=res;

output<=res;

end process;

end interface;

------

The sopc builder accepted the modul without any warnings.

Are the needles the result of the nios running through my vhdl code?

How can one solve this problem?

Thanks for your help in advance. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif

andy

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You should consider using a multi-cycle custom instruction instead of a combinatorial custom instruction.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by james@Apr 24 2006, 01:44 PM

    you should consider using a multi-cycle custom instruction instead of a combinatorial custom instruction.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14583)

    --- quote end ---

    --- Quote End ---

    I agree with you. Using a clock can keep the signal&#39;s synchrony.