Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Make simulation silent when verbose mode is not activated

  • Loading branch information...
commit a8f9d698cab25ae54495a81d1f8aba52a009b746 1 parent 7e76854
Yann Sionneau authored October 24, 2012
4  lm32_dcache.v
@@ -765,7 +765,9 @@ always @(posedge clk_i `CFG_RESET_SENSITIVITY)
765 765
 begin
766 766
 	if (rst_i == `TRUE)
767 767
 	begin
  768
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
768 769
 		$display("DTLB STATE MACHINE RESET");
  770
+`endif
769 771
 		dtlb_flushing <= 1;
770 772
 		dtlb_flush_set <= {addr_dtlb_index_width{1'b1}};
771 773
 		dtlb_state <= `LM32_TLB_STATE_FLUSH;
@@ -783,7 +785,9 @@ begin
783 785
 			if (dtlb_miss == `TRUE)
784 786
 			begin
785 787
 				dtlb_miss_addr <= address_m;
  788
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
786 789
 				$display("WARNING : DTLB MISS on addr 0x%08X at time %t", address_m, $time);
  790
+`endif
787 791
 			end
788 792
 			if (csr_write_enable && csr_write_data[0])
789 793
 			begin
12  lm32_icache.v
@@ -792,7 +792,9 @@ begin
792 792
 		begin
793 793
 			if (eret_q_x)
794 794
 			begin
795  
-//				$display("[%t] itlb_enabled <= 0x%08X upon eret", $time, csr_psw[`LM32_CSR_PSW_EITLBE]);
  795
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
  796
+				$display("[%t] itlb_enabled <= 0x%08X upon eret", $time, csr_psw[`LM32_CSR_PSW_EITLBE]);
  797
+`endif
796 798
 				itlb_enabled <= csr_psw[`LM32_CSR_PSW_EITLBE];
797 799
 			end
798 800
 			else if (exception_x || in_exception)
@@ -808,7 +810,9 @@ begin
808 810
 				begin
809 811
 					if (exception_m)
810 812
 					begin
  813
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
811 814
 						$display("[%t] pc_exception <= 0x%08X", $time, pc_m);
  815
+`endif
812 816
 						pc_exception <= pc_m;
813 817
 					end
814 818
 					if (pc_exception == pc_w)
@@ -816,13 +820,17 @@ begin
816 820
 						in_exception <= 0;
817 821
 					end
818 822
 				end
  823
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
819 824
 				$display("[%t] itlb_enabled <= 0x%08X upon exception", $time, 0);
  825
+`endif
820 826
 				itlb_enabled <= 0;
821 827
 			end
822 828
 			else
823 829
 			begin
  830
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
824 831
 				if (itlb_enabled != csr_psw[`LM32_CSR_PSW_ITLBE])
825 832
 					$display("[%t] itlb_enabled <= 0x%08X", $time, csr_psw[`LM32_CSR_PSW_ITLBE]);
  833
+`endif
826 834
 
827 835
 				itlb_enabled <= csr_psw[`LM32_CSR_PSW_ITLBE];
828 836
 			end
@@ -834,7 +842,9 @@ always @(posedge clk_i `CFG_RESET_SENSITIVITY)
834 842
 begin
835 843
 	if (rst_i == `TRUE)
836 844
 	begin
  845
+`ifdef CFG_VERBOSE_DISPLAY_ENABLED
837 846
 		$display("ITLB STATE MACHINE RESET");
  847
+`endif
838 848
 		itlb_flushing <= 1;
839 849
 		itlb_flush_set <= {addr_itlb_index_width{1'b1}};
840 850
 		itlb_state <= `LM32_TLB_STATE_FLUSH;

0 notes on commit a8f9d69

Please sign in to comment.
Something went wrong with that request. Please try again.