File tree Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Expand file tree Collapse file tree 2 files changed +19
-17
lines changed Original file line number Diff line number Diff line change @@ -77,23 +77,17 @@ module XMLDecoder(
77
77
wire _isData = outValid && ! intag && ! _isComment;
78
78
79
79
// export the stack depth positions
80
- wire [7 :0 ] s0 = tagno[0 ];
81
- wire [7 :0 ] s1 = tagno[1 ];
82
- wire [7 :0 ] s2 = tagno[2 ];
83
- wire [7 :0 ] s3 = tagno[3 ];
84
- wire [7 :0 ] s4 = tagno[4 ];
85
- wire [7 :0 ] s5 = tagno[5 ];
86
- wire [7 :0 ] s6 = tagno[6 ];
87
- wire [7 :0 ] s7 = tagno[7 ];
88
-
89
- // This will be replaced in synthesis with EBR reset vector
90
- integer k;
91
- initial begin
92
- for (k = 0 ; k < 9 ; k = k + 1 ) begin
93
- tagno[k] <= 0 ;
94
- end
95
- end
96
- // END
80
+ assign s0 = tagno[0 ];
81
+ assign s1 = tagno[1 ];
82
+ assign s2 = tagno[2 ];
83
+ assign s3 = tagno[3 ];
84
+ assign s4 = tagno[4 ];
85
+ assign s5 = tagno[5 ];
86
+ assign s6 = tagno[6 ];
87
+ assign s7 = tagno[7 ];
88
+
89
+ // initialise to all zeros after configuration
90
+ initial $readmemh ("stack_zeros.txt" , tagno);
97
91
98
92
always @(posedge CLOCK) begin
99
93
if (inValid || vnn || vn || v) begin
Original file line number Diff line number Diff line change
1
+ 0
2
+ 0
3
+ 0
4
+ 0
5
+ 0
6
+ 0
7
+ 0
8
+ 0
You can’t perform that action at this time.
0 commit comments