- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-27-2012 10:53 PM
Hamidreza
Solved! Go to Solution.
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-28-2012 07:46 PM
Last time I did this was 13.3. I think the real magic is the definition of the control port in the mpd file. I had the chipscope ICON in my XPS project and my pcore looked something like this:
mpd file:
PARAMETER C_SIMULATION = 0, DT = integer, RANGE = (0:1)
PARAMETER C_VIO_ENABLE = 0, DT = integer, RANGE = (0:1)
PORT vioControl = "", DIR = IO, VEC = [35:0], THREE_STATE=FALSE, ISVALID = (C_VIO_ENABLE == 1)
pcore HDL file:
entity traffic_generator is
generic
(
C_SIMULATION : integer := 0;
C_VIO_ENABLE : integer := 0
);
port
(
clk : in std_logic ;
rst : in std_logic ;
-- status/control signals
trafficEn : in std_logic ;
-- vio interface
vioControl : inout std_logic_vector(35 downto 0)
);
end entity traffic_generator;
NO_VIO : if C_SIMULATION=1 or C_VIO_ENABLE=0 generate begin
vioSync <= (others=>'0');
end generate NO_VIO;
VIO : if C_SIMULATION=0 and C_VIO_ENABLE=1 generate begin
-- instantiate chipscope vio core
trafficGen_vio_I : trafficGen_vio
port map (
CLK => clk_i , --i
CONTROL => vioControl , --io
ASYNC_IN => vioAsync(2 downto 0) , --i
SYNC_OUT => vioSync(33 downto 0) --o
);
end generate VIO;
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-29-2012 09:46 PM
John,
I've applied your suggestion, but still no success.
The mpd file is as follows:
BEGIN core
## Generics for VHDL or Parameters for Verilog
PARAMETER CHIPSCOPE = 1, DT = INTEGER
...
PORT rx_frame_ila_control = "", DIR = IO, VEC = [35:0], THREE_STATE=FALSE, ISVALID=(CHIPSCOPE==1)
PORT tx_frame_ila_control = "", DIR = IO, VEC = [35:0], THREE_STATE=FALSE, ISVALID=(CHIPSCOPE==1)
....
and core hdl is like this:
entity core is
generic
(
CHIPSCOPE : integer := 1;
...
)
port
(
rx_frame_ila_control : inout std_logic_vector(35 downto 0);
tx_frame_ila_control : inout std_logic_vector(35 downto 0);
input1 : in std_logic;
intput2 : in std_logic;
...)
end core;
I want to pass the ila_control signals to inner modules of "core".
In XPS, I've added chipscope_icon module, but when I want to connect its ports to my core (by selecting "core" module from its dropdown list), I could only see "input1" and "input2".
Do you have any other suggestions?
Hamidreza
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-02-2012 08:38 AM
I found the solution of my problem by more search within xilinx forums:
http://www.xilinx.com/support/answers/19423.htm
Hamidreza
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-02-2012 07:27 PM
I use a text editor to modify the mhs. Or you could use the 'ports' tab to connect your control signals to the chipscope icon. You would also need to increase the C_NUM_CONTROL_PORTS value on the chipscope icon for the number of control ports you want to access.
The AR you reference is specific to chipscope inserter. That flow also works but you will have to re-insert after every synthesis run.
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-02-2012 09:59 PM
Yes, my problem is the re-insertion procedure :(
I used the "ports" tab and connected the control signals to the chipscope icon, but since I am newbie to chipscope and debugging, I did not know how to use that chipscope icon module :(
Would you please tell me which document should I read to use the chipscope icon which inserted inside the XPS project?
Hamidreza
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-02-2012 10:06 PM
Hamid,
You can have a look at my tutorial, its a very basic guide to use Chipscope in XPS platform. I am quite not sure if that would solve your problem. But let me know your feedback.
Good Luck.
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-03-2012 01:33 AM
Pritom,
Thanks for the tutorial. I will post the feedback soon.
I think that an advantage of the links I've posted before is that there is no need to synthesize the custopm ip core for tracing its signals and just synthesize after core insertion is needed. Or may be that's its disadvantage! :)
Hamidreza
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-03-2012 07:15 AM
Also, using the icon core is quite simple. In XPS, double click on the chipscope icon core, and you will be prompted to add it to your design. Click yes. In the popup window (XPS core config) set the number of control ports to match how many chipscope ILA, VIO, VBA, etc cores you have in your design. This will enable visability of the icon control ports which you then connect to your cores.
Re: Debugging custom ip using chipscope pro in XPS
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-09-2012 01:07 PM
After generating the netlist you can feed the .ngc file into the chipscope,insert the core,generate the new netlist.
Use this updated netlist to generate the bitstream.
when you are done, just open an Chipscope Analyser provide .bit & cdc file.
Monitor the signals.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
Signature:
1.Have you ever tried typing your question into Google? If not you should before posting.
Too many results? Try adding site:www.xilinx.com
2.Read the datasheet and user guide. Have you read the user guide in detail ? Can you find the user guide?
3. Search the forums for similar topics.
4.I have neither found any similar thread in existing forum nor web-search is helpful to me.What should I do ?
Post your issue in detail comprehensive format on the relevant
forum.
5. Do not post the same question on multiple forums,please search and post it on relevant forum.
6. Do not raise a new topic or question on someone else's thread, start a new thread!
7. Students/Newbies: Copying code is not the same as learning to design.
8. "It does not work" is not a question which can be answered. Provide much details (with webaddress, datasheet links,etc..).
and make sure to be specific!
9. You are not charged extra fees for comments in your code,It will help others to understand well.
10.If someone answers your question, mark the post with "Accept as solution". If you see a particularly good and informative post, consider giving it Kudos (the star on the left).











