forked from Github_Repos/cvw
		
	Fix Issue #142: SCOUNTEREN powers up at 1 instead of 0
This commit is contained in:
		
							parent
							
								
									dd517cdf00
								
							
						
					
					
						commit
						32c54db595
					
				@ -99,7 +99,7 @@ module csrs #(parameter
 | 
			
		||||
    flopenr #(`XLEN) SATPreg(clk, reset, WriteSATPM, CSRWriteValM, SATP_REGW);
 | 
			
		||||
  else
 | 
			
		||||
    assign SATP_REGW = 0; // hardwire to zero if virtual memory not supported
 | 
			
		||||
  flopens #(32)   SCOUNTERENreg(clk, reset, WriteSCOUNTERENM, CSRWriteValM[31:0], SCOUNTEREN_REGW);
 | 
			
		||||
  flopenr #(32)   SCOUNTERENreg(clk, reset, WriteSCOUNTERENM, CSRWriteValM[31:0], SCOUNTEREN_REGW);
 | 
			
		||||
  if (`SSTC_SUPPORTED) begin
 | 
			
		||||
    if (`XLEN == 64)
 | 
			
		||||
      flopenl #(`XLEN) STIMECMPreg(clk, reset, WriteSTIMECMPM, CSRWriteValM, 64'hFFFFFFFFFFFFFFFF, STIMECMP_REGW);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user