URL
https://opencores.org/ocsvn/lcd/lcd/trunk
Subversion Repositories lcd
[/] [lcd/] [web_uploads/] [ramc.shtml] - Rev 6
Compare with Previous | Blame | View Log
<html> <head> <title>OPENCORES.ORG</title> <META NAME="keywords" CONTENT="cores, VHDL, Verilog HDL, ASIC, Synthesizable, standard cell, IP, Intellectual Property, 32-bit RISC, UART, PCI, SDRAM, full custom, system on a chip, SOC, reusable, design, development, synthesis, designs, developers, C, Linux, eCos, open, free, open source cores, RTL code, system-on-a-chip, circuits, digital, GNU, GPL, core, controller, processor, system design, chip design, EDA, design methodology, design tools, ASICs, programmable logic, FPGA's, PLDs, CPLDs, verification, Synthesis, HDL, Simulation, IC design software, semiconductor design, integrated circuits, system designs, chip designs, EDAs, design methodologies, design tool, ASIC, programmable logics, FPGA, PLD, CPLD, Synthesis, circuit, Synopsys, system design, chip design, programmable logic, FPGA's, PLDs, CPLDs, verification, Simulation"> <META NAME="description" CONTENT="OPENCORES.ORG endorses development and hosts a repository of free, open source IP cores (chip designs, System-on-a-Chip) and supplemental boards."> </head> <body bgcolor=#ffffff> <table width="100%" cellspacing=5 cellpadding=0 border=0> <tr valign="top"><td> <center> <table cellspacing=0 cellpadding=5 width="100%" valign="top" border=0> <tr valign="top"><td bgcolor=#f0f0f0 valign="top"> <center><font size=+3><b>OPENCORES.ORG</b></font> <br><font size=-4><font color=#ffffff>.</font></font> <br> </center> </td></tr></table> </center> </td></tr> <tr valign="top"><td> <table border=0 cellspacing=0 cellpadding=5 width="100%"><tr valign="top"><td bgcolor="#f8f8f0"> </td> <td valign="top"> <table cellpadding=5 width="675"><tr><td valign="top" width="659"> <font SIZE="2"> <p>#include <genlib.h></p> <p>main()</p> <p>{</p> <p>DEF_LOFIG("RAM");</p> <p>LOCON("RWS", IN, "RWS" );</p> <p>LOCON("CS", IN, "CS" );</p> <p>LOCON("res", IN, "res" );</p> <p>LOCON("C[0:15]", IN, "C[0:15]" );</p> <p>LOCON("IO0", INOUT, "IO0");</p> <p>LOCON("IO1", INOUT, "IO1");</p> <p>LOCON("IO2", INOUT, "IO2");</p> <p>LOCON("IO3", INOUT, "IO3");</p> <p>LOCON("IO4", INOUT, "IO4");</p> <p>LOCON("IO5", INOUT, "IO5");</p> <p>LOCON("IO6", INOUT, "IO6");</p> <p>LOCON("IO7", INOUT, "IO7");</p> <p>LOCON("vdd", IN, "vdd" );</p> <p>LOCON("vss", IN, "vss" );</p> <p>LOINS("a2_y", "and1", "RWS", "CS", "wren", "vdd", "vss",0);</p> <p>/*buffer 7-0 input (write) */</p> <p>LOINS("p1_y","bufi7","IO7","in7","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi6","IO6","in6","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi5","IO5","in5","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi4","IO4","in4","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi3","IO3","in3","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi2","IO2","in2","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi1","IO1","in1","vdd","vss", 0);</p> <p>LOINS("p1_y","bufi0","IO0","in0","vdd","vss", 0);</p> <p>LOINS("mc", "mc07", "C[0]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc06", "C[0]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc05", "C[0]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc04", "C[0]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc03", "C[0]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc02", "C[0]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc01", "C[0]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc00", "C[0]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc17", "C[1]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc16", "C[1]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc15", "C[1]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc14", "C[1]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc13", "C[1]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc12", "C[1]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc11", "C[1]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc10", "C[1]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc27", "C[2]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc26", "C[2]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc25", "C[2]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc24", "C[2]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc23", "C[2]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc22", "C[2]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc21", "C[2]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc20", "C[2]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc37", "C[3]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc36", "C[3]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc35", "C[3]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc34", "C[3]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc33", "C[3]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc32", "C[3]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc31", "C[3]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc30", "C[3]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc47", "C[4]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc46", "C[4]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc45", "C[4]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc44", "C[4]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc43", "C[4]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc42", "C[4]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc41", "C[4]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc40", "C[4]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc57", "C[5]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc56", "C[5]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc55", "C[5]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc54", "C[5]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc53", "C[5]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc52", "C[5]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc51", "C[5]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc50", "C[5]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc67", "C[6]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc66", "C[6]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc65", "C[6]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc64", "C[6]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc63", "C[6]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc62", "C[6]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc61", "C[6]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc60", "C[6]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc77", "C[7]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc76", "C[7]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc75", "C[7]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc74", "C[7]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc73", "C[7]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc72", "C[7]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc71", "C[7]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc70", "C[7]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc87", "C[8]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc86", "C[8]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc85", "C[8]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc84", "C[8]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc83", "C[8]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc82", "C[8]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc81", "C[8]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc80", "C[8]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p>LOINS("mc", "mc97", "C[9]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc96", "C[9]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc95", "C[9]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc94", "C[9]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc93", "C[9]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc92", "C[9]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc91", "C[9]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc90", "C[9]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc107", "C[10]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc106", "C[10]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc105", "C[10]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc104", "C[10]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc103", "C[10]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc102", "C[10]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc101", "C[10]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc100", "C[10]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc117", "C[11]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc116", "C[11]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc115", "C[11]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc114", "C[11]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc113", "C[11]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc112", "C[11]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc111", "C[11]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc110", "C[11]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc127", "C[12]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc126", "C[12]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc125", "C[12]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc124", "C[12]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc123", "C[12]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc122", "C[12]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc121", "C[12]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc120", "C[12]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc137", "C[13]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc136", "C[13]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc135", "C[13]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc134", "C[13]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc133", "C[13]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc132", "C[13]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc131", "C[13]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc130", "C[13]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc147", "C[14]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc146", "C[14]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc145", "C[14]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc144", "C[14]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc143", "C[14]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc142", "C[14]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc141", "C[14]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc140", "C[14]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>LOINS("mc", "mc157", "C[15]", "wren", "in7","res", "q7", "vdd", "vss",0);</p> <p>LOINS("mc", "mc156", "C[15]", "wren", "in6","res", "q6", "vdd", "vss",0);</p> <p>LOINS("mc", "mc155", "C[15]", "wren", "in5","res", "q5", "vdd", "vss",0);</p> <p>LOINS("mc", "mc154", "C[15]", "wren", "in4","res", "q4", "vdd", "vss",0);</p> <p>LOINS("mc", "mc153", "C[15]", "wren", "in3","res", "q3", "vdd", "vss",0);</p> <p>LOINS("mc", "mc152", "C[15]", "wren", "in2","res", "q2", "vdd", "vss",0);</p> <p>LOINS("mc", "mc151", "C[15]", "wren", "in1","res", "q1", "vdd", "vss",0);</p> <p>LOINS("mc", "mc150", "C[15]", "wren", "in0","res", "q0", "vdd", "vss",0);</p> <p> </p> <p>/*buffer 7 - 0 untuk out (read) */</p> <p>LOINS("p1_y","bufo7","q7","IO7","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo6","q6","IO6","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo5","q5","IO5","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo4","q4","IO4","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo3","q3","IO3","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo2","q2","IO2","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo1","q1","IO1","vdd","vss", 0);</p> <p>LOINS("p1_y","bufo0","q0","IO0","vdd","vss", 0);</p> <p> </p> <p>SAVE_LOFIG();</p> <p>exit(0);</p> <p>}</p> <p> </p> <p> </p> </font> <b><font size=+1>Maintainers and Authors :</font></b> <p>LCD Driver development team <p>current members: <ul> <li> <a href="mailto:marta@vlsi.itb.ac.id">Hendra Gunawan</a></li> <li> <a href="mailto:sigit@students.ee.itb.ac.id">Nurhadi Wiyono</a></li> <li> <a href="mailto:sigit@students.ee.itb.ac.id">Kharisma Sinung P</a></li> </ul> <p> <b><font size=+1>Mailing-list:</font></b> <ul><a href="mailto:cores@opencores.org_NOSPAM">cores@opencores.org_NOSPAM</a></ul> </td></tr></table> </td></tr> <tr><td bgcolor="#f8f8f0"> </td> <td valign="bottom"> <table cellspacing=0 cellpadding=4 border=0 width="100%"bgcolor="#f0f0f0"><tr> <td align=left><i><small>Last modified on Sunday, 17-Sep-2000 03:58:04 JAVT</i></td> <td align=right><i><small>Copyright © 1999-2000 OPENCORES.ORG. All rights reserved.</td> </tr></table> </td></tr></table> </td></tr></table> </body></html>