fix fast/slow Tuple2 fn names
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 28 Jul 2018 05:18:41 +0000 (06:18 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 28 Jul 2018 05:18:41 +0000 (06:18 +0100)
src/bsv/bsv_lib/fast_tuple2_template.bsv
src/bsv/bsv_lib/slow_tuple2_template.bsv

index 6d50157dcb9012420e1d29598ad643e53eb4ca82..82357cfce144c0b9f5b2171f4c4e6df896eba8f4 100644 (file)
@@ -44,8 +44,8 @@ package fast_memory_map;
 
 
 
-function FastTuple2 #(Bool, Bit#(TLog#(Num_Fast_Slaves)))
-                fn_addr_to_slave_num  (Bit#(`PADDR) addr);
+function Tuple2 #(Bool, Bit#(TLog#(Num_Fast_Slaves)))
+                fn_addr_to_fastslave_num  (Bit#(`PADDR) addr);
 
     if(addr>=`SDRAMMemBase && addr<=`SDRAMMemEnd)
         return tuple2(True,fromInteger(valueOf(Sdram_slave_num)));
index a3d92c4fec808360221f26ed34886bbfaea49b64..ce5989b27aaa22eec41182d790c509feb5d2d88f 100644 (file)
@@ -10,8 +10,8 @@ package slow_memory_map;
 
     /* ==== define the number of slow peripheral irqs ==== */
 
-       function SlowTuple2#(Bool, Bit#(TLog#(Num_Slow_Slaves)))
-                     fn_address_mapping (Bit#(`ADDR) addr);
+       function Tuple2#(Bool, Bit#(TLog#(Num_Slow_Slaves)))
+                     fn_slow_address_mapping (Bit#(`ADDR) addr);
         `ifdef CLINT
             if(addr>=`ClintBase && addr<=`ClintEnd)
                 return tuple2(True,fromInteger(valueOf(CLINT_slave_num)));