Project: reg_file

Author: John Loomis

Contents

Verilog Files

reg_file.v

Quartus Files

fit.summary
tan.summary

Verilog Files

reg_file.v

module reg_file
#(parameter BITS = 32)
(
    input clock, write_enable,
    input [BITS-1:0] dc,
    input [4:0] ra,rb,rc,
    output [BITS-1:0] qa,qb
);

reg [BITS-1:0] r[0:31];

initial
begin
    $readmemh("reg_init.txt", r);
end

always @(posedge clock)
    if (write_enable && rc) r[rc] <= dc;
    
assign qa = r[ra];
assign qb = r[rb];

//        da <= (ra? r[ra]: 0);
//        db <= (rb? r[rb]: 0);


endmodule            

Quartus Compilation Summary

fit.summary

Fitter Status : Successful - Tue Sep 29 20:13:51 2009
Quartus II Version : 9.0 Build 235 06/17/2009 SP 2 SJ Web Edition
Revision Name : reg_file
Top-level Entity Name : reg_file
Family : Cyclone II
Device : EP2C35F672C6
Timing Models : Final
Total logic elements : 1,473 / 33,216 ( 4 % )
    Total combinational functions : 1,473 / 33,216 ( 4 % )
    Dedicated logic registers : 1,024 / 33,216 ( 3 % )
Total registers : 1024
Total pins : 113 / 475 ( 24 % )
Total virtual pins : 0
Total memory bits : 0 / 483,840 ( 0 % )
Embedded Multiplier 9-bit elements : 0 / 70 ( 0 % )
Total PLLs : 0 / 4 ( 0 % )

tan.summary

--------------------------------------------------------------------------------------
Timing Analyzer Summary
--------------------------------------------------------------------------------------

Type           : Worst-case tsu
Slack          : N/A
Required Time  : None
Actual Time    : 9.544 ns
From           : rc[1]
To             : r~985
From Clock     : --
To Clock       : clock
Failed Paths   : 0

Type           : Worst-case tco
Slack          : N/A
Required Time  : None
Actual Time    : 16.368 ns
From           : r~462
To             : qb[14]
From Clock     : clock
To Clock       : --
Failed Paths   : 0

Type           : Worst-case tpd
Slack          : N/A
Required Time  : None
Actual Time    : 19.682 ns
From           : ra[1]
To             : qa[25]
From Clock     : --
To Clock       : --
Failed Paths   : 0

Type           : Worst-case th
Slack          : N/A
Required Time  : None
Actual Time    : -3.527 ns
From           : dc[20]
To             : r~948
From Clock     : --
To Clock       : clock
Failed Paths   : 0

Type           : Total number of failed paths
Slack          : 
Required Time  : 
Actual Time    : 
From           : 
To             : 
From Clock     : 
To Clock       : 
Failed Paths   : 0

--------------------------------------------------------------------------------------


Maintained by John Loomis, last updated Tue Sep 29 20:16:22 2009