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.

[SOLVED] Run time error in Xilinx Vivado

Status
Not open for further replies.

rahdirs

Advanced Member level 1
Advanced Member level 1
Joined
May 22, 2013
Messages
424
Helped
93
Reputation
192
Reaction score
91
Trophy points
1,308
Location
Mordor
Visit site
Activity points
4,492
Hi,

While simulating my top_module,i was getting a run time error just at the start of simulation & simulation stopped.

It was showing a breakpoint at line below:

Code:
c0_app_wdf_data  <= "000000"& not dout_i(255)&  dout_i(254 downto 246)&
                               not dout_i(239) &  dout_i(238 downto 230)&
                               not dout_i(223) &  dout_i(222 downto 214)&
                               not dout_i(207) &  dout_i(206 downto 198)&
                               not dout_i(191) &  dout_i(190 downto 182)&
                               not dout_i(175) &  dout_i(174 downto 166)&
                               not dout_i(159) &  dout_i(158 downto 150)&
                               not dout_i(143) &  dout_i(142 downto 128)&
                               "000000"& not dout_i(127)&  dout_i(126 downto 118)&
                               not dout_i(111) &  dout_i(110 downto 102)&
                               not dout_i(95)  &  dout_i(94 downto 86)&
                               not dout_i(79)  &  dout_i(78 downto 70)&
                               not dout_i(63)  &  dout_i(62 downto 54)&
                               not dout_i(47)  &  dout_i(46 downto 38)&
                               not dout_i(31)  &  dout_i(30 downto 22)&
                               not dout_i(15)  &  dout_i(14 downto 0);

To understand what those variables mean,i've attached a part of my code:

Code:
  signal [B]dout_i [/B]      : std_logic_vector(255 downto 0) := (OTHERS => '0');
  signal [B]c0_app_wdf_data[/B]   : std_logic_vector(C0_APP_DATA_WIDTH-1 downto 0);

  begin
  c0_app_wdf_data  <= "000000"& not dout_i(255)&  dout_i(254 downto 246)&
                               not dout_i(239) &  dout_i(238 downto 230)&
                               not dout_i(223) &  dout_i(222 downto 214)&
                               not dout_i(207) &  dout_i(206 downto 198)&
                               not dout_i(191) &  dout_i(190 downto 182)&
                               not dout_i(175) &  dout_i(174 downto 166)&
                               not dout_i(159) &  dout_i(158 downto 150)&
                               not dout_i(143) &  dout_i(142 downto 128)&
                               "000000"& not dout_i(127)&  dout_i(126 downto 118)&
                               not dout_i(111) &  dout_i(110 downto 102)&
                               not dout_i(95)  &  dout_i(94 downto 86)&
                               not dout_i(79)  &  dout_i(78 downto 70)&
                               not dout_i(63)  &  dout_i(62 downto 54)&
                               not dout_i(47)  &  dout_i(46 downto 38)&
                               not dout_i(31)  &  dout_i(30 downto 22)&
                               not dout_i(15)  &  dout_i(14 downto 0); 

  wr_i_fifo_inst : wr_fifo_top 
  PORT MAP (wr_clk, rd_clk, rst, wr_en, rd_en, o_ichannel_data, [B]dout_i[/B], full_f1,  empty_f1);


Is there anything wrong with concatenation or is it any other problem ?

- - - Updated after finding out error- - -

Hi,

It was very foolish of me to make this mistake.

The datawidth of left hand side & right hand side do not match in that line.
c0_app_wdf_data is 192 bits while right side is 184 bits,so it is showing a run time error.

If possible & if any moderator sees this post,delete this thread
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top