--- Quote Start ---
originally posted by soin@Sep 19 2006, 05:12 PM
hi,
you have to use the "create new component" tool in sopc builder: insert your hdl file in the "hdl files"page and then specify your pins function in the "signals" page, nad in your case your interupt pin. before you had to define your interupt as an output pin of your hdl component.
bye
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18337)
--- quote end ---
--- Quote End ---
Hi Soin,
I already added my
counter component to SOPC Builder. Here is the
wrapper which instantiates the task logic of counter and its interface (defining control , status , ... registers) :
module counter_avalon_interface
(
clk , // global signal , clk , 1bit , input
reset_n , // global signal , reset , 1bit , input
chipselect , // avalon_slave 0 , chipselect , 1bit , input
address , // avalon_slave_0 , address , 2bit , input
write , // avalon_slave_0 , write , 1bit , input
writedata , // avalon_slave_0 , writedata , 8bit , input
read , // avalon_slave_0 , read , 1bit , input
readdata , // avalon_slave_0 , writedata , 8bit , output
counter_out, // avalon_slave_0 , writedata , 8bit , export
intr // avalon_slave_0 , writedata , 1bit , export ?????
);
I also assigned
counter_out to LED's but I am not sure of :
1) what pin I should assign
intr to make CPU interrupted when it is high.
2) What I should do with my component to make it CPU-interruptable like UART , PIO , ....
Have you got ideas about this ?
Regards,
Quan