UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
2,295 Views
Registered: ‎04-23-2013

HLS RTL Cosimulation stripping last newline from out.gold.dat

Hello,

I am trying to get a pass indication on validation with my out.gold.dat.

C simulation works fine and passes.

1st result of RTL co-simulation passes.

Then the next result fails with a message:

"\ No newline at end of file"

 

Then I look at outgold.dat (there are 2 of them), and both have the last newline stripped off.

I can replace the newline(S), but the co-simulation will strip them off again.

 

What is going on?

 

Thanks,

Emmett

0 Kudos
1 Reply
Teacher xilinxacct
Teacher
221 Views
Registered: ‎10-23-2018

Re: HLS RTL Cosimulation stripping last newline from out.gold.dat

@emmettbradford

I notice you have 2 files names out.gold.dat and outgold.dat. (are you editing one, and comparing another?)

I would not expect the any 'gold' file to be written to in a test bench... only diffed against.

When you 'write' your test output, do you put an newline on the last print? If not, maybe diff is complaining about that (and not the gold file).

Hope that helps. If so, please mark as solution accepted. Kudos also welcomed. :-)

0 Kudos