|
Message
From: Marko Mlinar<markom@o...>
Date: Fri Feb 6 12:43:23 CET 2004
Subject: [oc] SoC Builder
Hi!> There was also a project started to build the GUI in Java (Marko do you > have a screenshot to publish?). I have attached a manual, a script that > creates an example SoC (OR1200, Ethernet MAC, PCI, UART, GPIO and Memory > Controller) and I'd like to hear your comments. I've attached the screenshot, but it is really not something big, since we engineers rather write the text code ;) The code that way is much more reusable and configurable. We now have tons of code in flint languge, able to generate cop, pads, BSDL files, etc.
Although Damjan sent you very bad example (but other ones are probably all confidential), I hope you will find the code readable enough. I've also attached added vi syntax highlighting file.
best regards, Marko -------------- next part -------------- " Vim syntax file " Language: Flint " Maintainer: Marko Mlinar, flint_gui.png " Last Update: Wed Feb 19 10:05:54 CET 2003
" For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded if version < 600 syntax clear elseif exists("b:current_syntax") finish endif
" Set the local value of the 'iskeyword' option if version >= 600 setlocal iskeyword=@,48-57,_,192-255,+,-,? else set iskeyword=@,48-57,_,192-255,+,-,? endif
" A bunch of useful Verilog keywords syn keyword flintStatement include recursive exclude path syn keyword flintStatement print function syn keyword flintStatement return syn keyword flintStatement catch foreach in if else syn keyword flintStatement unconnected multidrive input output inout signal syn match flintStatement ">>\?" "old ones syn keyword flintStatement project shell import toplevel abstract property pairwise add sub module
syn keyword flintTodo contained TODO
syn match flintOperator display contained "[&|~!)(*%@+/=?:;}{,.\^\-\[\]]" syn match flintSpecial "\\[1-9]"
syn region flintRegex start=+<+ end=+>+ contains=flintRegexSpecial syn match flintRegexCat "#" syn match flintRegexRange "[0-9]\+[\t\n ]*[:][\t\n ]*[0-9]\+" syn match flintRegexSpecial display contained "\\[1-9]"
syn region flintComment start="/\*" end="\*/" contains=flintTodo syn match flintComment "//.*" oneline contains=flintTodo
syn match flintGlobal "$[a-zA-Z0-9_]\+\>" syn match flintGlobal "${[^}]*}"
" syn match flintConstant "\<[a-zA-Z\._][a-zA-Z0-9_\.\[\]:]\+\>" syn match flintConstant "\<\.\>" syn match flintConstant "FLIN\-[0-9]\+"
" syn match flintNumber "\<[0-9]\+\>"
syn region flintString start="\"" skip=+\\\\\|\\"+ end="\"" contains=flintEscape,flintEscapeError syn match flintEscape display contained "\\[nt\"\\]" syn match flintEscapeError display contained "\\[^\"\\nt]"
syn cluster flintParenGroup contains=flintParen,flintBracket,flintParenError
"Modify the following as needed. The trade-off is performance versus "functionality. syn sync lines=50
" Define the default highlighting. " For version 5.7 and earlier: only when not done already " For version 5.8 and later: only when an item doesn't have highlighting yet if version >= 508 || !exists("did_flint_syn_inits") if version < 508 let did_flint_syn_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif
" The default highlighting. HiLink flintCharacter Character HiLink flintString String HiLink flintTodo Todo HiLink flintComment Comment HiLink flintConstant Constant " HiLink flintNumber Number HiLink flintOperator Operator HiLink flintEscape Special HiLink flintEscapeError flintError HiLink flintSpecial Special HiLink flintStatement Statement
HiLink flintGlobal Define
HiLink flintRegex Type
HiLink flintRegexCat Type
HiLink flintRegexRange Type
HiLink flintType Type
HiLink flintError Error
delcommand HiLink
endif
let b:current_syntax = "flint"
" vim: ts=8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: flint_gui.png
Type: image/png
Size: 19412 bytes
Desc: not available
Url : flint_gui.png
|
 |