~ubuntu-branches/ubuntu/maverick/ktechlab/maverick

« back to all changes in this revision

Viewing changes to src/electronics/components/ram.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Georges Khaznadar
  • Date: 2009-02-09 00:28:49 UTC
  • mfrom: (5.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090209002849-9o8eqqiczqo4vat3
Tags: 0.3.6-4
modified debian/rules so it does not invoke make if there is no 
Makefile
Closes: #514552

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
LibraryItem* RAM::libraryItem()
25
25
{
26
26
        return new LibraryItem(
27
 
                QString("ec/ram"),
 
27
                "ec/ram",
28
28
                i18n("RAM"),
29
29
                i18n("Integrated Circuits"),
30
30
                "ic2.png",
37
37
        : Component( icnDocument, newItem, id ? id : "ram" )
38
38
{
39
39
        m_name = i18n("RAM");
40
 
        m_desc = i18n("This RAM stores data as a collection of words; each of which contains <i>word size</i> bits of data.<br><br>To read data, set the CS (<i>chip select</i>) and the OE (<i>output enable</i>) pins high, and select the word using the address pins <i>A*</i>. The word is outputted on the data-out pins: <i>DO*</i>.<br><br>To write data, set the CS (<i>chip select</i>) and the WE (<i>write enable</i>) pins high, and select the address to write to with the <i>A*</i> pins. Write to the selected word using the data-in pins: <i>DI*</i>.<br><br>The <i>Address Size</i> is the number of bits that determine an address; so the total number of words stored will be 2^<sup><i>Address Size</i></sup>.");
41
40
        
42
41
        m_data = 0l;
43
42
        m_pCS = 0l;
49
48
        createProperty( "wordSize", Variant::Type::Int );
50
49
        property("wordSize")->setCaption( i18n("Word Size") );
51
50
        property("wordSize")->setMinValue(1);
52
 
        property("wordSize")->setMaxValue(256);
 
51
        property("wordSize")->setMaxValue(64);
53
52
        property("wordSize")->setValue(2);
54
53
        
55
54
        createProperty( "addressSize", Variant::Type::Int );
56
55
        property("addressSize")->setCaption( i18n("Address Size") );
57
56
        property("addressSize")->setMinValue(1);
58
 
        property("addressSize")->setMaxValue(32);
 
57
        property("addressSize")->setMaxValue(24);
59
58
        property("addressSize")->setValue(4);
60
59
        
61
60
        m_data = createProperty( "data", Variant::Type::Raw )->value().asBitArray();