Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. reg[63:0] s_axis_video_in_0_tdata_in;
  2. data_file = $fopen("./stream_data.txt", "r");
  3. if(data_file == 0) begin
  4. $display("data_file handle was NULL");
  5. $finish;
  6. end
  7.  
  8. if (!$feof(data_file)) begin
  9. //use captured_data as you would any other wire or reg value;
  10. $fscanf(data_file, "%lln", s_axis_video_in_0_tdata_in);
  11. end
  12. else begin
  13. // EOF means end simulation
  14. $finish;
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement