Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reg[63:0] s_axis_video_in_0_tdata_in;
- data_file = $fopen("./stream_data.txt", "r");
- if(data_file == 0) begin
- $display("data_file handle was NULL");
- $finish;
- end
- if (!$feof(data_file)) begin
- //use captured_data as you would any other wire or reg value;
- $fscanf(data_file, "%lln", s_axis_video_in_0_tdata_in);
- end
- else begin
- // EOF means end simulation
- $finish;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement