Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Can you tell me whether the following code is pseudocode or if it is in a language what language is it?

-- Dmemory module (implements the data

-- memory for the MIPS computer)

LIBRARY IEEE;

USE IEEE.STD_LOGIC_1164.ALL;

USE IEEE.STD_LOGIC_ARITH.ALL;

USE IEEE.STD_LOGIC_SIGNED.ALL;

LIBRARY altera_mf;

USE altera_mf.atlera_mf_components.ALL;

ENTITY dmemory IS

PORT( read_data : OUT STD_LOGIC_VECTOR( 31 DOWNTO 0 );

address : IN STD_LOGIC_VECTOR( 7 DOWNTO 0 );

write_data : IN STD_LOGIC_VECTOR( 31 DOWNTO 0 );

MemRead, Memwrite : IN STD_LOGIC;

clock, reset : IN STD_LOGIC );

END dmemory;

ARCHITECTURE behavior OF dmemory IS

SIGNAL write_clock : STD_LOGIC;

BEGIN

data_memory: altsyncram

GENERIC MAP (

operation_mode => "SINGLE_PORT",

width_a => 32,

widthad_a => 8,

lpm_type => "altsyncram",

outdata_reg_a => "UNREGISTERED",

-- Reads in mif file for initial data memory values

init_file => "dmemory.mif",

intended_device_family => "Cyclone"lpm_widthad => 8

)

PORT MAP (

wren_a => memwrite,

clock0 => write_clock,

address_a => address,

data_a => write_data,

q_a => read_data );

-- Load memory address & data register with write clock

write_clock <= NOT clock;

END behavior;

1 Answer

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    That's not pseudo code. It's VHDL, mostly used when simulating components of a board, such as a lunchbox, by designing the components (MUXes, adders, etc), and mapping them to ports, which can then be used to connect to other components.

Still have questions? Get your answers by asking now.