ID บทความ: 000078264 ประเภทข้อมูล: ข้อมูลผลิตภัณฑ์และเอกสารประกอบ การตรวจสอบครั้งล่าสุด: 09/09/2012

วิธีการ simulaiton RAM ด้วยไฟล์เริ่มต้นหน่วยความจํา (.mif)

สิ่งแวดล้อม

  • การจำลองแบบ
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    คำอธิบาย วิธีการ simulaiton RAM พร้อมไฟล์เริ่มต้นหน่วยความจํา (.mif)
    ความละเอียด

    รูปแบบไฟล์ initializaiton หน่วยความจํา (.mif) ไม่รองรับเครื่องมือการจําลองของบริษัทอื่นบางตัว การแก้ปัญหาต่อไปนี้:

    ก่อนอื่น ให้แปลงรูปแบบ .mif เป็น Hexadecimal (Intel-Format) .hex ด้วย Sav เป็น...

    ประการที่สอง แก้ไขรหัส HDL เพื่อเปลี่ยนการอ้างอิงชื่อไฟล์หน่วยความจํา

    altsyncram_component altsyncram (
    .clock0 (inclock),
    .wren_a (wren_a),
    .address_b (address_b)
    .clock1 (outclock),
    .data_b (data_b)
    .wren_b (wren_b)
    .address_a (address_a)
    .data_a (data_a)
    .q_a (sub_wire0)
    .q_b (sub_wire1)
    .aclr0 (1\'b0),
    .aclr1 (1\'b0),
    .addressstall_a (1\'b0),
    .addressstall_b (1\'b0)
    .byteena_a (1\'b1)
    .byteena_b (1\'b1),
    .clocken0 (1\'b1),
    .clocken1 (1\'b1),
    .clocken2 (1\'b1),
    .clocken3 (1\'b1),
    .eccstatus (),
    .rden_a (1\'b1)
    .rden_b (1\'b1);
    defparam
    altsyncram_component.address_reg_b = "CLOCK0"
    altsyncram_component.clock_enable_input_a = "BYPASS",
    altsyncram_component.clock_enable_input_b = "BYPASS",
    altsyncram_component.clock_enable_output_a = "BYPASS",
    altsyncram_component.clock_enable_output_b = "BYPASS",
    altsyncram_component.indata_reg_b = "CLOCK0"
    altsyncram_component.init_file = "test.mif"
    altsyncram_component.intended_device_family = "Cyclone IV GX"
    altsyncram_component.lpm_type = "altsyncram"
    altsyncram_component.numwords_a = 32,
    altsyncram_component.numwords_b = 32,
    altsyncram_component.operation_mode = "BIDIR_DUAL_PORT"
    altsyncram_component.outdata_aclr_a = "NONE"
    altsyncram_component.outdata_aclr_b = "NONE"
    altsyncram_component.outdata_reg_a = "CLOCK1"
    altsyncram_component.outdata_reg_b = "CLOCK1"
    altsyncram_component.power_up_uninitialized = "FALSE"
    altsyncram_component.read_during_write_mode_mixed_ports = "OLD_DATA",
    altsyncram_component.read_during_write_mode_port_a = "OLD_DATA"
    altsyncram_component.read_during_write_mode_port_b = "OLD_DATA"
    altsyncram_component.widthad_a = 5
    altsyncram_component.widthad_b = 5,
    altsyncram_component.width_a = 8
    altsyncram_component.width_b = 8
    altsyncram_component.width_byteena_a = 1
    altsyncram_component.width_byteena_b = 1,
    altsyncram_component.wrcontrol_wraddress_reg_b = "CLOCK0";

    ถึง

    altsyncram_component altsyncram (
    .clock0 (inclock),
    .wren_a (wren_a)
    .address_b (address_b),
    .clock1 (outclock),
    .data_b (data_b)
    .wren_b (wren_b)
    .address_a (address_a)
    .data_a (data_a)
    .q_a (sub_wire0)
    .q_b (sub_wire1)
    .aclr0 (1\'b0),
    .aclr1 (1\'b0),
    .addressstall_a (1\'b0),
    .addressstall_b (1\'b0)
    .byteena_a (1\'b1)
    .byteena_b (1\'b1),
    .clocken0 (1\'b1),
    .clocken1 (1\'b1),
    .clocken2 (1\'b1),
    .clocken3 (1\'b1),
    .eccstatus (),
    .rden_a (1\'b1)
    .rden_b (1\'b1);
    defparam
    altsyncram_component.address_reg_b = "CLOCK0"
    altsyncram_component.clock_enable_input_a = "BYPASS",
    altsyncram_component.clock_enable_input_b = "BYPASS",
    altsyncram_component.clock_enable_output_a = "BYPASS",
    altsyncram_component.clock_enable_output_b = "BYPASS",
    altsyncram_component.indata_reg_b = "CLOCK0"
    altsyncram_component.init_file = "test.hex"
    altsyncram_component.intended_device_family = "Cyclone IV GX"
    altsyncram_component.lpm_type = "altsyncram"
    altsyncram_component.numwords_a = 32,
    altsyncram_component.numwords_b = 32,
    altsyncram_component.operation_mode = "BIDIR_DUAL_PORT"
    altsyncram_component.outdata_aclr_a = "NONE"
    altsyncram_component.outdata_aclr_b = "NONE"
    altsyncram_component.outdata_reg_a = "CLOCK1"
    altsyncram_component.outdata_reg_b = "CLOCK1"
    altsyncram_component.power_up_uninitialized = "FALSE"
    altsyncram_component.read_during_write_mode_mixed_ports = "OLD_DATA"
    altsyncram_component.read_during_write_mode_port_a = "OLD_DATA"
    altsyncram_component.read_during_write_mode_port_b = "OLD_DATA",
    altsyncram_component.widthad_a = 5
    altsyncram_component.widthad_b = 5,
    altsyncram_component.width_a = 8
    altsyncram_component.width_b = 8
    altsyncram_component.width_byteena_a = 1
    altsyncram_component.width_byteena_b = 1,
    altsyncram_component.wrcontrol_wraddress_reg_b = "CLOCK0";

    ผลิตภัณฑ์ที่เกี่ยวข้อง

    บทความนี้จะนำไปใช้กับ 1 ผลิตภัณฑ์

    อุปกรณ์ที่ตั้งโปรแกรมได้ Intel®

    เนื้อหาในหน้านี้เป็นการผสมผสานระหว่างการแปลเนื้อหาต้นฉบับภาษาอังกฤษโดยมนุษย์และคอมพิวเตอร์ เนื้อหานี้จัดทำขึ้นเพื่อความสะดวกของคุณและเพื่อเป็นข้อมูลทั่วไปเท่านั้นและไม่ควรอ้างอิงว่าสมบูรณ์หรือถูกต้อง หากมีความขัดแย้งใด ๆ ระหว่างเวอร์ชันภาษาอังกฤษของหน้านี้กับคำแปล เวอร์ชันภาษาอังกฤษจะมีผลเหนือกว่าและควบคุม ดูเวอร์ชันภาษาอังกฤษของหน้านี้