⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class.ptf

📁 UART RS232 IPCORE for sopc builder
💻 PTF
📖 第 1 页 / 共 2 页
字号:
                        REM GROUP 
                        {
                           TEXT 
                           {
                              title = "Baud rate can be changed by software";
                           }
                           TEXT 
                           {
                              title = " (divisor register is writeable) ";
                           }
                        }
#                     }
                  }
                  GROUP mode
                  {
                     layout = "horizontal";
                     GROUP parity
                     {
                        title = "parity";
                        COMBO 
                        {
                           id = "mode_parity";
                           DATA 
                           {
                              parity = "$";
                           }
                           ITEM 
                           {
                              title = "None";
                              value = "N";
                           }
                           ITEM 
                           {
                              title = "Even";
                              value = "E";
                           }
                           ITEM 
                           {
                              title = "Odd";
                              value = "O";
                           }
                        }
                     }
                     GROUP databits
                     {
                        title = "data bits";
                        COMBO 
                        {
                           id = "mode_databits";
                           DATA 
                           {
                              data_bits = "$";
                           }
                           ITEM 
                           {
                              title = "7";
                           }
                           ITEM 
                           {
                              title = "8";
                           }
                           ITEM 
                           {
                              title = "9";
                           }
				   ITEM 
                           {
                              title = "10";
                           }

                        }
                     }
                     GROUP stopbits
                     {
                        title = "stop bits";
                        COMBO 
                        {
                           id = "mode_stopbits";
                           DATA 
                           {
                              stop_bits = "$";
                           }
                           ITEM 
                           {
                              title = "1";
                           }
                           ITEM 
                           {
                              title = "2";
                           }
                        }
                     }
                  }
                  GROUP flowcontrol
                  {
                     title = "Flow Control";
                     align = "left";
                     CHECK usehw
                     {
                        id = "use_flowcontrol";
                        title = "Include CTS/RTS pins and control register bits";
                        DATA 
                        {
                           use_cts_rts = "$";
                        }
                     }
                  }
                  GROUP dma
                  {
                     title = "Streaming Data (DMA) control";
                     align = "left";
                     CHECK eop
                     {
                        id = "use_dma_eop";
                        title = "Include end-of-packet register";
                        tooltip = "UART will automatically detect an end-of-packet character <br> and terminate a streaming (DMA) transfer.";
                        DATA 
                        {
                           use_eop_register = "$";
                        }
                     }
                  }
               }
               PAGE 2
               {
                  title = "FIFOs";
                  GROUP fifo
                  {
                     title = "FIFO usage   v0.1";
                     align = "left";
                     CHECK usefifo
                     {
                        id = "use_fifo";
                        title = "Include receive and transmit FIFOs";
						editable = "1";
                        DATA 
                        {
                           use_fifo = "$";
                        }
                  	

						GROUP fifo_export
                  		{
                     	 	title = "FIFO export";
                     		align = "left";
                     		CHECK exportfifo
                     		{
                         	 	  id = "export_use_fifo";
                        		  title = "Export FIFO used signals ";
								  #editable = use_fifo;
								  #enable="{{ $use_fifo }}";
                        		  DATA
                        		  {
                           		   	  fifo_export_used = "$";
                        		  }
                     		}
                  		}


						GROUP fifo_sz
                  		{
                     	 	  title = "FIFO Size";
                     		  align = "left";
                     		  COMBO rate
                     		  {
                        	   		id="fifo_size";
                        			title = "FIFO depth (words): ";
                        			editable = "1";
                        			DATA
                        			{
                           			 	fifo_size = "$";
                        			}
                        			ITEM
                        			{
                           			title = "8";
                        			}
			                        ITEM 
			                        {
			                           title = "16";
			                        }
			                        ITEM 
			                        {
			                           title = "32";
			                        }
			                        ITEM 
			                        {
			                           title = "64";
			                        }
			                        ITEM
			                        {
			                           title = "128";
			                        }
			                        ITEM
			                        {
			                           title = "256";
			                        }
			                        ITEM
			                        {
			                           title = "512";
			                        }
			                        ITEM
			                        {
			                           title = "1024";
			                        }
			                        ITEM
			                        {
			                           title = "2048";
			                        }
			                        ITEM
			                        {
			                           title = "4096";
			                        }
			                        ITEM
			                        {
			                           title = "8192";
			                        }
			                     }
							}
		   				}
 		   			}
		       }
		PAGE 3
               {
                  title = "MISC";
                  GROUP misc
                  {
                     title = "Export IRQ pin   v0.1";
                     align = "left";
                     CHECK exportfifo
                     {
                        id = "EXPORT IRQ signal";
                        title = "Do not connect the irq to the Avalon Bus";
						editable = "1";
                        DATA 
                        {
					$SBI/Has_IRQ = "!$";
				}
#                           export_irq = "$";

				TEXT 
                     	{
                        	title = "Export the singal to the top level so it can be handled manually";
                     	}		
		   	     }
 		   	 }
		    }

               PAGE 4
               {
                  title = "Simulation";
                  GROUP input
                  {
                     align = "right";
                     title = "Simulated RXD-input character stream";
                     EDIT stream
                     {
                        id="sim_char_stream";
                        enable = "{{ ! $INI/enable }}";
                        DATA 
                        {
                           sim_char_stream = "$";
                        }
                        rows = "10";
                     }
                  }
                  GROUP interactive
                  {
                     title = "Prepare Interactive Windows";
                     align = "left";
                     CHECK output
                     {
                        id = "sim_interactive_output";
                        title = "Create Modelsim Alias to open streaming output window";
                        tooltip = "This interaction is not independent from Simulated Character Stream";
                        DATA 
                        {
                           $INO/enable = "$";
                        }
                     }
                     CHECK input
                     {
                        id = "sim_interactive_input";
                        title = "Create Modelsim Alias to open interactive stimulus window";
                        tooltip = "This interaction is not independent from Simulated Character Stream";
                        DATA 
                        {
                           $INI/enable = "$";
                        }
                     }
                  }
                  GROUP simbaud
                  {
                     title = "Simulated transmitter Baud Rate"; # this should be the default, but for some reason isn't:
                     align = "left";
                     RADIO accelerated
                     {
                        id = "sim_baud_accelerated";
                        title = "accelerated (use divisor = 2)";
                        DATA 
                        {
                           sim_true_baud = "0";
                        }
                     }
                     RADIO actual
                     {
                        id = "sim_baud_actual";
                        title = "actual (use true baud divisor)";
                        DATA 
                        {
                           sim_true_baud = "1";
                        }
                     }
                  }
               }
            }
         }
      }
   }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -