Altera_Forum
Honored Contributor
14 years agoEncoding Type: User-Encoded
I set in Quartus "State Machine Processing: User-Encoded" and I set encoding in my Verilog source. I am using the latest version of the Quartus.
I do not understand why when I look in Analysis & Synthesis report I see different codes like below. For example I set for st0 0010 and in the report is 0000.Encoding Type: User-Encoded
+---------------------------------------------------+
; State Machine - |fsm_kody|state ;
+-----------+---------+---------+---------+---------+
; Name ; state~5 ; state~4 ; state~3 ; state~2 ;
+-----------+---------+---------+---------+---------+
; state.st0 ; 0 ; 0 ; 0 ; 0 ;
; state.st8 ; 0 ; 1 ; 1 ; 1 ;
; state.st1 ; 1 ; 0 ; 1 ; 0 ;
; state.st9 ; 1 ; 0 ; 1 ; 1 ;
; state.st4 ; 1 ; 0 ; 0 ; 0 ;
; state.st5 ; 1 ; 0 ; 0 ; 1 ;
; state.st2 ; 1 ; 1 ; 1 ; 0 ;
; state.st7 ; 1 ; 1 ; 1 ; 1 ;
; state.st3 ; 1 ; 1 ; 0 ; 0 ;
; state.st6 ; 1 ; 1 ; 0 ; 1 ;
+-----------+---------+---------+---------+---------+
+--------------------------------------------------------------------------+
; Parameter Settings for User Entity Instance: Top-level Entity: |fsm_kody ;
+----------------+-------+-------------------------------------------------+
; Parameter Name ; Value ; Type ;
+----------------+-------+-------------------------------------------------+
; st0 ; 0010 ; Unsigned Binary ;
; st1 ; 1000 ; Unsigned Binary ;
; st2 ; 1100 ; Unsigned Binary ;
; st3 ; 1110 ; Unsigned Binary ;
; st4 ; 1010 ; Unsigned Binary ;
; st5 ; 1011 ; Unsigned Binary ;
; st6 ; 1111 ; Unsigned Binary ;
; st7 ; 1101 ; Unsigned Binary ;
; st8 ; 0101 ; Unsigned Binary ;
; st9 ; 1001 ; Unsigned Binary ;
+----------------+-------+-------------------------------------------------+