YosysJS Example Application #01

[ load example ]

Loading...
id='n98' href='#n98'>98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782
class Name:
    First_Character = 1
    Last_Character = 256
    First_Keyword = 257
    Mod = 257
    Rem = 258
    Abs = 259
    Not = 260
    Access = 261
    After = 262
    Alias = 263
    All = 264
    Architecture = 265
    Array = 266
    Assert = 267
    Attribute = 268
    Begin = 269
    Block = 270
    Body = 271
    Buffer = 272
    Bus = 273
    Case = 274
    Component = 275
    Configuration = 276
    Constant = 277
    Disconnect = 278
    Downto = 279
    Else = 280
    Elsif = 281
    End = 282
    Entity = 283
    Exit = 284
    File = 285
    For = 286
    Function = 287
    Generate = 288
    Generic = 289
    Guarded = 290
    If = 291
    In = 292
    Inout = 293
    Is = 294
    Label = 295
    Library = 296
    Linkage = 297
    Loop = 298
    Map = 299
    New = 300
    Next = 301
    Null = 302
    Of = 303
    On = 304
    Open = 305
    Others = 306
    Out = 307
    Package = 308
    Port = 309
    Procedure = 310
    Process = 311
    Range = 312
    Record = 313
    Register = 314
    Report = 315
    Return = 316
    Select = 317
    Severity = 318
    Signal = 319
    Subtype = 320
    Then = 321
    To = 322
    Transport = 323
    Type = 324
    Units = 325
    Until = 326
    Use = 327
    Variable = 328
    Wait = 329
    When = 330
    While = 331
    With = 332
    And = 333
    Or = 334
    Xor = 335
    Nand = 336
    Nor = 337
    Last_Vhdl87 = 337
    Xnor = 338
    Group = 339
    Impure = 340
    Inertial = 341
    Literal = 342
    Postponed = 343
    Pure = 344
    Reject = 345
    Shared = 346
    Unaffected = 347
    Sll = 348
    Sla = 349
    Sra = 350
    Srl = 351
    Rol = 352
    Ror = 353
    Last_Vhdl93 = 353
    Protected = 354
    Last_Vhdl00 = 354
    Assume = 355
    Context = 356
    Cover = 357
    Default = 358
    Parameter = 359
    Property = 360
    Restrict = 361
    Restrict_Guarantee = 362
    Sequence = 363
    Vmode = 364
    Vprop = 365
    Vunit = 366
    Last_Vhdl08 = 366
    First_Ams_Keyword = 367
    Across = 367
    Break = 368
    Limit = 369
    Nature = 370
    Noise = 371
    Procedural = 372
    Quantity = 373
    Reference = 374
    Spectrum = 375
    Subnature = 376
    Terminal = 377
    Through = 378
    Tolerance = 379
    Last_AMS_Vhdl = 379
    Last_Keyword = 379
    First_Verilog = 380
    Always = 380
    Assign = 381
    Buf = 382
    Bufif0 = 383
    Bufif1 = 384
    Casex = 385
    Casez = 386
    Cmos = 387
    Deassign = 388
    Defparam = 389
    Disable = 390
    Edge = 391
    Endcase = 392
    Endfunction = 393
    Endmodule = 394
    Endprimitive = 395
    Endspecify = 396
    Endtable = 397
    Endtask = 398
    Force = 399
    Forever = 400
    Fork = 401
    Highz0 = 402
    Highz1 = 403
    Ifnone = 404
    Initial = 405
    Input = 406
    Join = 407
    Large = 408
    Macromodule = 409
    Medium = 410
    Module = 411
    Negedge = 412
    Nmos = 413
    Notif0 = 414
    Notif1 = 415
    Output = 416
    Pmos = 417
    Posedge = 418
    Primitive = 419
    Pull0 = 420
    Pull1 = 421
    Pulldown = 422
    Pullup = 423
    Realtime = 424
    Release = 425
    Reg = 426
    Repeat = 427
    Rcmos = 428
    Rnmos = 429
    Rpmos = 430
    Rtran = 431
    Rtranif0 = 432
    Rtranif1 = 433
    Scalared = 434
    Small = 435
    Specify = 436
    Specparam = 437
    Strong0 = 438
    Strong1 = 439
    Supply0 = 440
    Supply1 = 441
    Tablex = 442
    Task = 443
    Tran = 444
    Tranif0 = 445
    Tranif1 = 446
    Tri = 447
    Tri0 = 448
    Tri1 = 449
    Triand = 450
    Trior = 451
    Trireg = 452
    Vectored = 453
    Wand = 454
    Weak0 = 455
    Weak1 = 456
    Wire = 457
    Wor = 458
    Last_Verilog = 458
    First_V2001 = 459
    Automatic = 459
    Endgenerate = 460
    Genvar = 461
    Localparam = 462
    Unsigned = 463
    Signed = 464
    Last_V2001 = 464
    Uwire = 465
    First_SV3_0 = 466
    Always_Comb = 466
    Always_Ff = 467
    Always_Latch = 468
    Bit = 469
    Byte = 470
    Changed = 471
    Char = 472
    Const = 473
    Continue = 474
    Do = 475
    Endinterface = 476
    Endtransition = 477
    Enum = 478
    Export = 479
    Extern = 480
    Forkjoin = 481
    Iff = 482
    Import = 483
    Int = 484
    Interface = 485
    Logic = 486
    Longint = 487
    Longreal = 488
    Modport = 489
    Packed = 490
    Priority = 491
    Shortint = 492
    Shortreal = 493
    Static = 494
    Struct = 495
    Timeprecision = 496
    Timeunit = 497
    Transition = 498
    Typedef = 499
    Union = 500
    Unique = 501
    Unique0 = 502
    Void = 503
    Last_SV3_0 = 503
    First_SV3_1 = 504
    Chandle = 504
    Class = 505
    Clocking = 506
    Constraint = 507
    Dist = 508
    Endclass = 509
    Endclocking = 510
    Endprogram = 511
    Endproperty = 512
    Endsequence = 513
    Extends = 514
    Final = 515
    First_Match = 516
    Inside = 517
    Intersect = 518
    Join_Any = 519
    Join_None = 520
    Local = 521
    Program = 522
    Rand = 523
    Randc = 524
    Ref = 525
    Solve = 526
    String = 527
    Super = 528
    This = 529
    Throughout = 530
    Var = 531
    Virtual = 532
    Wait_Order = 533
    Last_SV3_1 = 533
    First_SV3_1a = 534
    Covergroup = 534
    Coverpoint = 535
    Endgroup = 536
    Endpackage = 537
    Expect = 538
    Foreach = 539
    Ignore_Bins = 540
    Illegal_Bins = 541
    Matches = 542
    Randcase = 543
    Randsequence = 544
    Tagged = 545
    Wildcard = 546
    Last_SV3_1a = 546
    First_SV2009 = 547
    Implies = 547
    S_Until = 548
    S_Until_With = 549
    Until_With = 550
    Last_SV2009 = 550
    First_Operator = 551
    Op_Equality = 551
    Op_Inequality = 552
    Op_Less = 553
    Op_Less_Equal = 554
    Op_Greater = 555
    Op_Greater_Equal = 556
    Op_Plus = 557
    Op_Minus = 558
    Op_Mul = 559
    Op_Div = 560
    Op_Exp = 561
    Op_Concatenation = 562
    Op_Condition = 563
    Op_Match_Equality = 564
    Op_Match_Inequality = 565
    Op_Match_Less = 566
    Op_Match_Less_Equal = 567
    Op_Match_Greater = 568
    Op_Match_Greater_Equal = 569
    Last_Operator = 569
    First_Attribute = 570
    Base = 570
    Left = 571
    Right = 572
    High = 573
    Low = 574
    Pos = 575
    Val = 576
    Succ = 577
    Pred = 578
    Leftof = 579
    Rightof = 580
    Reverse_Range = 581
    Length = 582
    Delayed = 583
    Stable = 584
    Quiet = 585
    Transaction = 586
    Event = 587
    Active = 588
    Last_Event = 589
    Last_Active = 590
    Last_Value = 591
    Last_Attribute = 591
    First_Vhdl87_Attribute = 592
    Behavior = 592
    Structure = 593
    Last_Vhdl87_Attribute = 593
    First_Vhdl93_Attribute = 594
    Ascending = 594
    Image = 595
    Value = 596
    Driving = 597
    Driving_Value = 598
    Simple_Name = 599
    Instance_Name = 600
    Path_Name = 601
    Last_Vhdl93_Attribute = 601
    First_Vhdl08_Attribute = 602
    Element = 602
    Last_Vhdl08_Attribute = 602
    First_AMS_Attribute = 603
    Contribution = 603
    Dot = 604
    Integ = 605
    Above = 606
    Zoh = 607
    Ltf = 608
    Ztf = 609
    Ramp = 610
    Slew = 611
    Last_AMS_Attribute = 611
    First_Standard = 612
    Std = 612
    Standard = 613
    Boolean = 614
    NFalse = 615
    NTrue = 616
    Character = 617
    Severity_Level = 618
    Note = 619
    Warning = 620
    Error = 621
    Failure = 622
    Universal_Integer = 623
    Universal_Real = 624
    Convertible_Integer = 625
    Convertible_Real = 626
    Integer = 627
    Real = 628
    Time = 629
    Fs = 630
    Ps = 631
    Ns = 632
    Us = 633
    Ms = 634
    Sec = 635
    Min = 636
    Hr = 637
    Max = 638
    Delay_Length = 639
    Now = 640
    Natural = 641
    Positive = 642
    Bit_Vector = 643
    File_Open_Kind = 644
    Read_Mode = 645
    Write_Mode = 646
    Append_Mode = 647
    File_Open_Status = 648
    Open_Ok = 649
    Status_Error = 650
    Name_Error = 651
    Mode_Error = 652
    Foreign = 653
    Boolean_Vector = 654
    To_Bstring = 655
    To_Binary_String = 656
    To_Ostring = 657
    To_Octal_String = 658
    To_Hstring = 659
    To_Hex_String = 660
    Integer_Vector = 661
    Real_Vector = 662
    Time_Vector = 663
    Digits = 664
    Format = 665
    Unit = 666
    Domain_Type = 667
    Quiescent_Domain = 668
    Time_Domain = 669
    Frequency_Domain = 670
    Domain = 671
    Frequency = 672
    Last_Standard = 672
    First_Charname = 673
    Nul = 673
    Soh = 674
    Stx = 675
    Etx = 676
    Eot = 677
    Enq = 678
    Ack = 679
    Bel = 680
    Bs = 681
    Ht = 682
    Lf = 683
    Vt = 684
    Ff = 685
    Cr = 686
    So = 687
    Si = 688
    Dle = 689
    Dc1 = 690
    Dc2 = 691
    Dc3 = 692
    Dc4 = 693
    Nak = 694
    Syn = 695
    Etb = 696
    Can = 697
    Em = 698
    Sub = 699
    Esc = 700
    Fsp = 701
    Gsp = 702
    Rsp = 703
    Usp = 704
    Del = 705
    C128 = 706
    C129 = 707
    C130 = 708
    C131 = 709
    C132 = 710
    C133 = 711
    C134 = 712
    C135 = 713
    C136 = 714
    C137 = 715
    C138 = 716
    C139 = 717
    C140 = 718
    C141 = 719
    C142 = 720
    C143 = 721
    C144 = 722
    C145 = 723
    C146 = 724
    C147 = 725
    C148 = 726
    C149 = 727
    C150 = 728
    C151 = 729
    C152 = 730
    C153 = 731
    C154 = 732
    C155 = 733
    C156 = 734
    C157 = 735
    C158 = 736
    C159 = 737
    Last_Charname = 737
    First_Misc = 738
    Guard = 738
    Deallocate = 739
    File_Open = 740
    File_Close = 741
    Read = 742
    Write = 743
    Flush = 744
    Endfile = 745
    I = 746
    J = 747
    F = 748
    L = 749
    P = 750
    R = 751
    S = 752
    V = 753
    External_Name = 754
    Open_Kind = 755
    First = 756
    Last = 757
    Textio = 758
    Work = 759
    Text = 760
    To_String = 761
    Minimum = 762
    Maximum = 763
    Untruncated_Text_Read = 764
    Textio_Read_Real = 765
    Textio_Write_Real = 766
    Get_Resolution_Limit = 767
    Control_Simulation = 768
    Step = 769
    Index = 770
    Item = 771
    Uu_File_Uu = 772
    Uu_Line_Uu = 773
    Label_Applies_To = 774
    Return_Port_Name = 775
    Map_To_Operator = 776
    Type_Function = 777
    Built_In = 778
    NNone = 779
    Last_Misc = 779
    First_Ieee = 780
    Ieee = 780
    Std_Logic_1164 = 781
    Std_Ulogic = 782
    Std_Ulogic_Vector = 783
    Std_Logic = 784
    Std_Logic_Vector = 785
    Rising_Edge = 786
    Falling_Edge = 787
    VITAL_Timing = 788
    VITAL_Level0 = 789
    VITAL_Level1 = 790
    Numeric_Std = 791
    Numeric_Bit = 792
    Unresolved_Unsigned = 793
    Unresolved_Signed = 794
    Std_Logic_Arith = 795
    Std_Logic_Signed = 796
    Std_Logic_Unsigned = 797
    Std_Logic_Textio = 798
    To_Integer = 799
    To_Unsigned = 800
    To_Signed = 801
    Resize = 802
    Std_Match = 803
    Shift_Left = 804
    Shift_Right = 805
    Rotate_Left = 806
    Rotate_Right = 807
    To_Bitvector = 808
    Is_X = 809
    Conv_Signed = 810
    Conv_Unsigned = 811
    Conv_Integer = 812
    Math_Real = 813
    Ceil = 814
    Round = 815
    Log2 = 816
    Sin = 817
    Cos = 818
    Last_Ieee = 818
    First_Synthesis = 819
    Allconst = 819
    Allseq = 820
    Anyconst = 821
    Anyseq = 822
    Last_Synthesis = 822
    First_Directive = 823
    Define = 823
    Endif = 824
    Ifdef = 825
    Ifndef = 826
    Include = 827
    Timescale = 828
    Undef = 829
    Protect = 830
    Begin_Protected = 831
    End_Protected = 832
    Key_Block = 833
    Data_Block = 834
    Line = 835
    Celldefine = 836
    Endcelldefine = 837
    Default_Nettype = 838
    Resetall = 839
    Last_Directive = 839
    First_Systask = 840
    Bits = 840
    D_Root = 841
    D_Unit = 842
    Last_Systask = 842
    First_SV_Method = 843
    Size = 843
    Insert = 844
    Delete = 845
    Pop_Front = 846
    Pop_Back = 847
    Push_Front = 848
    Push_Back = 849
    Name = 850
    Len = 851
    Substr = 852
    Exists = 853
    Atoi = 854
    Itoa = 855
    Find = 856
    Find_Index = 857
    Find_First = 858
    Find_First_Index = 859
    Find_Last = 860
    Find_Last_Index = 861
    Num = 862
    Randomize = 863
    Pre_Randomize = 864
    Post_Randomize = 865
    Srandom = 866
    Get_Randstate = 867
    Set_Randstate = 868
    Seed = 869
    State = 870
    Last_SV_Method = 870
    First_BSV = 871
    uAction = 871
    uActionValue = 872
    BVI = 873
    uC = 874
    uCF = 875
    uE = 876
    uSB = 877
    uSBR = 878
    Action = 879
    Endaction = 880
    Actionvalue = 881
    Endactionvalue = 882
    Ancestor = 883
    Clocked_By = 884
    Default_Clock = 885
    Default_Reset = 886
    Dependencies = 887
    Deriving = 888
    Determines = 889
    Enable = 890
    Ifc_Inout = 891
    Input_Clock = 892
    Input_Reset = 893
    Instance = 894
    Endinstance = 895
    Let = 896
    Match = 897
    Method = 898
    Endmethod = 899
    Numeric = 900
    Output_Clock = 901
    Output_Reset = 902
    Par = 903
    Endpar = 904
    Path = 905
    Provisos = 906
    Ready = 907
    Reset_By = 908
    Rule = 909
    Endrule = 910
    Rules = 911
    Endrules = 912
    Same_Family = 913
    Schedule = 914
    Seq = 915
    Endseq = 916
    Typeclass = 917
    Endtypeclass = 918
    Valueof = 919
    uValueof = 920
    Last_BSV = 920
    First_Comment = 921
    Psl = 921
    Pragma = 922
    Synthesis = 923
    Synopsys = 924
    Translate_Off = 925
    Translate_On = 926
    Last_Comment = 926
    First_PSL = 927
    A = 927
    Af = 928
    Ag = 929
    Ax = 930
    Abort = 931
    Assume_Guarantee = 932
    Before = 933
    Clock = 934
    E = 935
    Ef = 936
    Eg = 937
    Ex = 938
    Endpoint = 939
    Eventually = 940
    Fairness = 941
    Fell = 942
    Forall = 943
    G = 944
    Inf = 945
    Inherit = 946
    Never = 947
    Next_A = 948
    Next_E = 949
    Next_Event = 950
    Next_Event_A = 951
    Next_Event_E = 952
    Prev = 953
    Rose = 954
    Strong = 955
    W = 956
    Whilenot = 957
    Within = 958
    X = 959
    Last_PSL = 959
    First_Edif = 960
    Celltype = 970
    View = 971
    Viewtype = 972
    Direction = 973
    Contents = 974
    Net = 975
    Viewref = 976
    Cellref = 977
    Libraryref = 978
    Portinstance = 979
    Joined = 980
    Portref = 981
    Instanceref = 982
    Design = 983
    Designator = 984
    Owner = 985
    Member = 986
    Number = 987
    Rename = 988
    Userdata = 989
    Last_Edif = 989